2021-04-07 09:39:26 -07:00
|
|
|
#!/bin/bash -ex
|
2021-06-11 18:19:33 -07:00
|
|
|
cd build/install
|
2021-06-11 21:13:57 -07:00
|
|
|
# remove debug files before package
|
|
|
|
rm -r Metaforce.app/Contents/MacOS/*.dSYM
|
2022-02-21 19:12:03 -08:00
|
|
|
for i in metaforce crashpad_handler; do
|
2021-04-07 09:39:26 -07:00
|
|
|
codesign --timestamp --options runtime -s "$CODESIGN_IDENT" Metaforce.app/Contents/MacOS/$i
|
|
|
|
done
|
2021-06-11 21:13:57 -07:00
|
|
|
create-dmg Metaforce.app --identity="$CODESIGN_IDENT" .
|
2021-06-12 09:48:20 -07: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"
|