Only sign and notarize if var set

This commit is contained in:
Roland Rabien 2023-09-01 13:16:38 -07:00
commit 60f3238a96

View file

@ -12,6 +12,7 @@ fi
if [ "$(uname)" == "Darwin" ]; then
# Create a temp keychain
if [ -n "$GITHUB_ACTIONS" ]; then
if [ -z "$APPLICATION" ]; then
echo "Create a keychain"
security create-keychain -p nr4aGPyz Keys.keychain
@ -29,6 +30,7 @@ if [ "$(uname)" == "Darwin" ]; then
fi
DEV_APP_ID="Developer ID Application: Roland Rabien (3FS7DJDG38)"
DEV_INST_ID="Developer ID Installer: Roland Rabien (3FS7DJDG38)"
fi
fi
ROOT=$(cd "$(dirname "$0")/.."; pwd)
@ -53,9 +55,11 @@ if [ "$(uname)" == "Darwin" ]; then
cp -R "$ROOT/Builds/xcode/${PLUGIN}_artefacts/Release/VST3/$PLUGIN.vst3" "$ROOT/ci/bin"
cd "$ROOT/ci/bin"
if [ -z "$APPLICATION" ]; then
codesign -s "$DEV_APP_ID" -v $PLUGIN.vst --options=runtime --timestamp --force
codesign -s "$DEV_APP_ID" -v $PLUGIN.vst3 --options=runtime --timestamp --force
codesign -s "$DEV_APP_ID" -v $PLUGIN.component --options=runtime --timestamp --force
fi
# Notarize
cd "$ROOT/ci/bin"