Files
renpy/scripts/mac/mac_dmg_server.sh
2022-11-01 20:02:53 -04:00

28 lines
505 B
Bash
Executable File

#!/bin/bash
set -e
IDENTITY="$1"
VOLNAME="$2"
DMGDIRBASE="$3"
DMGBASE="$4"
security unlock-keychain -p "$(cat ~/.password)"
pushd /tmp
rm -Rf "$DMGDIRBASE" || true
tar xf "$DMGDIRBASE.tar"
hdiutil create -fs 'HFS+' -format UDBZ -ov -volname "$VOLNAME" -srcfolder "$DMGDIRBASE" "$DMGBASE"
codesign --timestamp --verbose -s "$1" "$DMGBASE"
date
echo "Submitting for notarization."
xcrun notarytool submit --keychain-profile developer-signing --wait "$DMGBASE"
xcrun stapler staple "$DMGBASE"
popd