Skip to content

Commit

Permalink
macos fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
crschnick committed Oct 31, 2024
1 parent 2720c08 commit 86f96f6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions misc/macos_notarize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ set -e
APP_DIR="$1/build/dist/Pdx-Unlimiter.app"
ARCHIVE="$TMPDIR/notarization.zip"

codesign -vvv --deep --entitlements "$1/misc/Entitlements.plist" --options=runtime --force --strict --sign "Developer ID Application: Christopher Schnick (PF6V9HYACS)" "$APP_DIR/Contents/MacOS/Pdx-Unlimiter"
codesign -vvv --deep --options=runtime --force --strict --sign "Developer ID Application: Christopher Schnick (PF6V9HYACS)" "$APP_DIR/Contents/MacOS/rakaly_mac"

curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install maven
source "$HOME/.sdkman/bin/sdkman-init.sh"

git clone https://github.com/dg76/signpackage "$TMPDIR/signpackage" || true
cd "$TMPDIR/signpackage"
mvn clean compile package assembly:single
cp target/SignPackage-1.0-jar-with-dependencies.jar ./SignPackage.jar
java -jar "$TMPDIR/signpackage/SignPackage.jar" -d "$APP_DIR" -t -k "Developer ID Application: Christopher Schnick (PF6V9HYACS)" -e "$1/misc/Entitlements.plist"

echo "Create keychain profile"
xcrun notarytool store-credentials "notarytool-profile" --apple-id "$MAC_NOTARIZATION_APPLE_ID" --team-id "$MAC_NOTARIZATION_TEAM_ID" --password "$MAC_APP_SPECIFIC_PASSWORD"
Expand Down

0 comments on commit 86f96f6

Please sign in to comment.