Skip to content

Instantly share code, notes, and snippets.

@sarah-j-smith
Created February 5, 2025 11:57
Show Gist options
  • Save sarah-j-smith/5dc52a6805679fbafd1ae8b988451d7d to your computer and use it in GitHub Desktop.
Save sarah-j-smith/5dc52a6805679fbafd1ae8b988451d7d to your computer and use it in GitHub Desktop.
Mac Bash script to build the editor version of an Unreal project
PROJ=$(find . -name "*.uproject")
if [ -z "$PROJ" ]; then
echo "Run this from inside the folder containing your Unreal project file - eg \"MyGame.uproject\"."
exit 1;
fi
# Only major version as per pathname
UNREAL_VERSION=5.5
PROJ_NAME=$(basename $PROJ .uproject)
CUR_DIR=$(pwd)
sh /Users/Shared/Epic\ Games/UE_5.5/Engine/Build/BatchFiles/Mac/Build.sh \
-ModuleWithSuffix=CrustyPirate,1877 CrustyPirateEditor Mac Development \
-Project="${CUR_DIR}/CrustyPirate.uproject" \
"${CUR_DIR}/CrustyPirate.uproject" \
-architecture=arm64 -IgnoreJunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment