Move to notarytool to sign on mac.

This commit is contained in:
Tom Rothamel
2022-11-01 02:08:02 -04:00
parent fb00ffadc4
commit cf7df895a1
4 changed files with 14 additions and 39 deletions
+6 -6
View File
@@ -11,17 +11,17 @@ DMGBASE=$(basename $4)
TARBALL=$DMGDIRBASE.tar
HOST=mary21.local
pushd $(dirname $DMGDIR)
rm -f /tmp/$TARBALL
tar cf /tmp/$TARBALL $DMGDIRBASE
popd
rsync -a $(dirname $0)/ tom@mary12.local:/tmp/renpy-mac-scripts/
rsync -a $(dirname $0)/ tom@$HOST:/tmp/renpy-mac-scripts/
rsync -a /tmp/$TARBALL tom@mary12.local:/tmp
ssh -t tom@mary12.local "'/tmp/renpy-mac-scripts/mac_dmg_server.sh' '$IDENTITY' '$VOLNAME' '$DMGDIRBASE' '$DMGBASE'"
rsync -a tom@mary12.local:/tmp/$DMGBASE $DMG
rsync -a /tmp/$TARBALL tom@$HOST:/tmp
ssh -t tom@$HOST "'/tmp/renpy-mac-scripts/mac_dmg_server.sh' '$IDENTITY' '$VOLNAME' '$DMGDIRBASE' '$DMGBASE'"
rsync -a tom@$HOST:/tmp/$DMGBASE $DMG
+1 -13
View File
@@ -20,19 +20,7 @@ codesign --timestamp --verbose -s "$1" "$DMGBASE"
date
echo "Submitting for notarization."
# --transport Aspera \
xcrun altool --asc-provider XHTE5H7Z79 -u tom@rothamel.us -p "@keychain:altool" \
--notarize-app \
--primary-bundle-id org.renpy.renpy.dmg \
-f "$DMGBASE"
date
echo "Submitted dmg for notarization."
$(dirname $0)/wait_notarization.py
sleep 60
xcrun notarytool submit --keychain-profile developer-signing --wait "$DMGBASE"
xcrun stapler staple "$DMGBASE"
+6 -6
View File
@@ -10,16 +10,16 @@ APPDIRBASE=$(basename $APPDIR)
TARBALL=$APPDIRBASE.tar
HOST=mary21.local
pushd $APPDIR
tar cf /tmp/$TARBALL $APPBASE
rsync -a /tmp/$TARBALL tom@mary12:/tmp
rsync -a /tmp/$TARBALL tom@$HOST:/tmp
rsync -a $(dirname $0)/ tom@mary12.local:/tmp/renpy-mac-scripts/
rsync -a $(dirname $0)/ tom@$HOST:/tmp/renpy-mac-scripts/
ssh -t tom@mary12.local "'/tmp/renpy-mac-scripts/mac_sign_server.sh' '$IDENTITY' '$TARBALL' '$APPBASE'"
ssh -t tom@$HOST "'/tmp/renpy-mac-scripts/mac_sign_server.sh' '$IDENTITY' '$TARBALL' '$APPBASE'"
rsync -a tom@mary12.local:/tmp/signed-$TARBALL /tmp
rsync -a tom@$HOST:/tmp/signed-$TARBALL /tmp
tar xf /tmp/signed-$TARBALL
popd
+1 -14
View File
@@ -19,20 +19,7 @@ zip -r /tmp/renpy.app.zip "$APP"
date
echo "Submitting for notarization."
xcrun altool --asc-provider XHTE5H7Z79 -u tom@rothamel.us -p "@keychain:altool" \
--notarize-app \
--transport Aspera \
--primary-bundle-id org.renpy.renpy \
-f /tmp/renpy.app.zip
date
echo "Submitted app for notarization."
$(dirname $0)/wait_notarization.py
sleep 60
xcrun notarytool submit --keychain-profile developer-signing --wait /tmp/renpy.app.zip
xcrun stapler staple "$APP"
tar cf "signed-$TARBALL" "$APP"