-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
143 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
DEVELOPER_ID="add yours for apple code signing" | ||
ENTITLEMENTS="path relative to this file" | ||
DEVELOPER_ID="Developer ID Application: John Doe (XXXXXXXXXX)" | ||
ENTITLEMENTS="./entitlements/rytm.entitlements" | ||
APPLE_ID="[email protected]" | ||
APP_PASSWORD="your-app-specific-password" | ||
TEAM_ID="XXXXXXXXXX" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,44 @@ | ||
set dotenv-load | ||
|
||
replace-package: | ||
rm -rf ~/Documents/Max\ 8/Packages/petunia | ||
cp -r {{justfile_directory()}}/petunia ~/Documents/Max\ 8/Packages/petunia | ||
|
||
install: | ||
cargo make --profile release install | ||
package: | ||
cargo make --profile release package | ||
package-all: | ||
cargo make --profile release package-all | ||
|
||
|
||
# Environment variables needed for notarization | ||
APPLE_ID := env_var('APPLE_ID') | ||
APP_PASSWORD := env_var('APP_PASSWORD') | ||
TEAM_ID := env_var('TEAM_ID') | ||
|
||
notarize: | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
cd {{justfile_directory()}}/petunia/externals | ||
rm -f rytm.zip | ||
zip -r rytm.zip rytm.mxo | ||
rm -f rytm_notarization.log | ||
xcrun notarytool submit rytm.zip \ | ||
--apple-id "{{APPLE_ID}}" \ | ||
--password "{{APP_PASSWORD}}" \ | ||
--team-id "{{TEAM_ID}}" \ | ||
--wait \ | ||
--output-format json \ | ||
> rytm_notarization.log | ||
STATUS=$(cat rytm_notarization.log | grep -o '"status":"[^"]*"' | cut -d'"' -f4) | ||
if [ "$STATUS" = "Accepted" ]; then | ||
echo "✅ Notarization succeeded" | ||
else | ||
echo "❌ Notarization failed with status: $STATUS" | ||
cat rytm_notarization.log | ||
exit 1 | ||
fi | ||
|
||
cd {{justfile_directory()}} | ||
|
||
xcrun stapler staple petunia/externals/rytm.mxo | ||
xcrun stapler validate petunia/externals/rytm.mxo |