Skip to content

Instantly share code, notes, and snippets.

@dilmerv
Created July 25, 2017 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dilmerv/e0fa8be3455711b733970d4d39c4996f to your computer and use it in GitHub Desktop.
Save dilmerv/e0fa8be3455711b733970d4d39c4996f to your computer and use it in GitHub Desktop.
Build.sh for MAC
#!/bin/bash
echo "Copying provisioning profile..."
cp ./embedded.provisionprofile ./Cubiques.app/Contents/
echo "Copying plist template..."
cp ./Info.plist ./Cubiques.app/Contents/
echo "Starting Signing..."
codesign -f --deep -s "3rd Party Mac Developer Application: Dilmer Valecillos" --entitlements "./Cubiques.entitlements" ./Cubiques.app/Contents/Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib
codesign -f --deep -s "3rd Party Mac Developer Application: Dilmer Valecillos" --entitlements "./Cubiques.entitlements" ./Cubiques.app/Contents/Frameworks/MonoEmbedRuntime/osx/libMonoPosixHelper.dylib
codesign -f --deep -s "3rd Party Mac Developer Application: Dilmer Valecillos" --entitlements Cubiques.entitlements ./Cubiques.app
echo "Done Signing..."
echo "Packaging game..."
productbuild --component ./Cubiques.app "/Applications" --sign "3rd Party Mac Developer Installer: Dilmer Valecillos" "Cubiques.pkg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment