Skip to content

Instantly share code, notes, and snippets.

@dilmerv
Created March 29, 2017 05:21
Show Gist options
  • Save dilmerv/ba0706b87345ea2619840dfa6dd5a8b0 to your computer and use it in GitHub Desktop.
Save dilmerv/ba0706b87345ea2619840dfa6dd5a8b0 to your computer and use it in GitHub Desktop.
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