Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MAC_Build_Sign_Game.sh
#!/bin/bash
echo "Copying provisioning profile..."
cp ./embedded.provisionprofile ./YourGameName.app/Contents/
echo "Starting Signing..."
codesign -f --deep -s "3rd Party Mac Developer Application: [Your Name]" --entitlements "./YourGameName.entitlements" ./YourGameName.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib
codesign -f --deep -s "3rd Party Mac Developer Application: [Your Name]" --entitlements "./YourGameName.entitlements" ./YourGameName.app/Contents/Frameworks/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib
codesign -f --deep -s "3rd Party Mac Developer Application: [Your Name]" --entitlements YourGameName.entitlements "./YourGameName.app/"
echo "Done Signing..."
echo "Packaging game..."
productbuild --component "./YourGameName.app" "/Applications" --sign "3rd Party Mac Developer Installer: [Your Name]" YourGameName.pkg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment