2021-04-07 16:39:26 +00:00
|
|
|
#!/bin/bash -ex
|
2021-06-12 01:19:33 +00:00
|
|
|
cd build/install
|
2021-06-12 04:13:57 +00:00
|
|
|
# remove debug files before package
|
|
|
|
rm -r Metaforce.app/Contents/MacOS/*.dSYM
|
2021-04-07 16:39:26 +00:00
|
|
|
# order is important
|
|
|
|
for i in visigen hecl metaforce crashpad_handler; do
|
|
|
|
codesign --timestamp --options runtime -s "$CODESIGN_IDENT" Metaforce.app/Contents/MacOS/$i
|
|
|
|
done
|
|
|
|
macdeployqt Metaforce.app -sign-for-notarization="$CODESIGN_IDENT" -no-strip
|
2021-06-12 04:13:57 +00:00
|
|
|
create-dmg Metaforce.app --identity="$CODESIGN_IDENT" .
|
2021-06-12 16:48:20 +00:00
|
|
|
xcrun altool -t osx -f *.dmg --primary-bundle-id com.axiodl.Metaforce \
|
|
|
|
--notarize-app -u "$ASC_USERNAME" -p "$ASC_PASSWORD" --team-id "$ASC_TEAM_ID"
|