Skip to content

Instantly share code, notes, and snippets.

@hucancode
Created May 25, 2022 04:20
Show Gist options
  • Save hucancode/7a53a9eaa1b5e4b86307cb0d464a584c to your computer and use it in GitHub Desktop.
Save hucancode/7a53a9eaa1b5e4b86307cb0d464a584c to your computer and use it in GitHub Desktop.
UE5 build current project
#!/usr/bin/env fish
set ubt /unreal/5/UnrealEngine/Engine/Build/BatchFiles/Linux/Build.sh
set prj (fd -d 1 -t f -e uproject)
if test -z "$prj"
return 1
end
set target (echo $prj | sd / . | rev | cut -f 2 -d . | rev)
$ubt {$target}Editor Linux Development $PWD/$prj -waitmutex
#!/usr/bin/env bash
set ubt=/unreal/5/UnrealEngine/Engine/Build/BatchFiles/Linux/Build.sh
set prj=$(find . -maxdepth 1 -type f -name "*.uproject")
if test -z "$prj"
exit 1
end
set target=$(echo $prj | sed 's|/|.|g' | rev | cut -f 2 -d . | rev)
$ubt {$target}Editor Linux Development $PWD/$prj -waitmutex
#!/usr/bin/env fish
set ubt "/Users/Shared/Epic Games/UE_5.0/Engine/Build/BatchFiles/Mac/Build.sh"
set prj (fd -d 1 -t f -e uproject)
if test -z "$prj"
return 1
end
set target (echo $prj | sd / . | rev | cut -f 2 -d . | rev)
$ubt {$target}Editor Linux Development $PWD/$prj -waitmutex
#!/usr/bin/env bash
ubt="/Users/Shared/Epic Games/UE_5.0/Engine/Build/BatchFiles/Mac/Build.sh"
prj=$(find . -maxdepth 1 -type f -name "*.uproject")
if test -z "$prj"
exit 1
fi
target=$(echo $prj | sed 's|/|.|g' | rev | cut -f 2 -d . | rev)
$ubt {$target}Editor Linux Development $PWD/$prj -waitmutex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment