Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Mac app #1030

Open
chen3feng opened this issue Dec 3, 2023 · 0 comments
Open

Build Mac app #1030

chen3feng opened this issue Dec 3, 2023 · 0 comments

Comments

@chen3feng
Copy link
Owner

chen3feng commented Dec 3, 2023

See UBT for reference:

Engine/Source/Programs/UnrealBuildTool/Platform/Mac/MacToolChain.cs

./Intermediate/Build/Mac/x86_64/TestClient/Development/FinalizeAppBundle.sh

#!/bin/sh
cd "/Users/cf/Documents/Work/PbTest/Binaries/Mac"
mkdir -p "TestClient.app/Contents/MacOS"
mkdir -p "TestClient.app/Contents/Resources"
rsync --checksum "/Users/cf/Documents/Work/UnrealEngine/Engine/Source/Runtime/Launch/Resources/Mac/UnrealEngine.icns" "TestClient.app/Contents/Resources/TestClient.icns"
rsync --checksum "/Users/cf/Documents/Work/UnrealEngine/Engine/Source/Runtime/Launch/Resources/Mac/Info.plist" "$TMPDIR/TempInfo.plist"
/usr/bin/sed -i "" -e "s/\${EXECUTABLE_NAME}/TestClient/g" "$TMPDIR/TempInfo.plist"
/usr/bin/sed -i "" -e "s/\${APP_NAME}/com.YourCompany.TestClient/g" "$TMPDIR/TempInfo.plist"
/usr/bin/sed -i "" -e "s/\${MACOSX_DEPLOYMENT_TARGET}/10.15.7/g" "$TMPDIR/TempInfo.plist"
/usr/bin/sed -i "" -e "s/\${ICON_NAME}/TestClient/g" "$TMPDIR/TempInfo.plist"
/usr/bin/sed -i "" -e "s/\${BUNDLE_VERSION}/5.1.1/g" "$TMPDIR/TempInfo.plist"
rsync --checksum "$TMPDIR/TempInfo.plist" "TestClient.app/Contents/Info.plist"
chmod 644 "TestClient.app/Contents/Info.plist"
mkdir -p "/Users/cf/Documents/Work/Test/Intermediate/Mac"
rsync --checksum "$TMPDIR/TempInfo.plist" "/Users/cf/Documents/Work/Test/Intermediate/Mac/TestClient-Info.plist"
chmod 644 "/Users/cf/Documents/Work/Test/Intermediate/Mac/TestClient-Info.plist"
echo 'echo -n "APPL????"' | bash > "$TMPDIR/TempPkgInfo"
rsync --checksum "$TMPDIR/TempPkgInfo" "TestClient.app/Contents/PkgInfo"
touch -c "TestClient.app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant