Skip to content

Commit

Permalink
restore package.yaml, fix signing
Browse files Browse the repository at this point in the history
  • Loading branch information
pomali committed Jul 7, 2023
1 parent f0187fa commit 03199b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
strategy:
matrix:
config:
# - os: ubuntu-latest
- os: ubuntu-latest
- os: macos-latest
# - os: windows-latest
- os: windows-latest

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@

{
"label": "MacOS: Send package for notarization",
"command": "xcrun notarytool submit --keychain-profile \"autogram\" --keychain $APPLE_KEYCHAIN_PATH --wait target/Autogram-*.pkg",
"command": "pkgutil --check-signature target/Autogram-*.pkg && xcrun notarytool submit --keychain-profile \"autogram\" --keychain $APPLE_KEYCHAIN_PATH --wait target/Autogram-*.pkg",
"options": {
"env": {
"JAVA_HOME": "${config:java.jdt.ls.java.home}",
Expand Down
3 changes: 2 additions & 1 deletion src/main/scripts/resources/Autogram-post-image.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash -e
TARGET="$(cd ../images/*/*/Contents;pwd)"
SOURCE="$(cd ../../mac-launcher;pwd)"

Expand All @@ -11,7 +12,7 @@ chmod +x "$TARGET/MacOS/Autogram"

# codesign changed executables
ENTITLEMENTS=../../Autogram.entitlements
if [ "$JPACKAGE_MAC_SIGN" = "1"]; then
if [[ "$JPACKAGE_MAC_SIGN" == "1" ]]; then
codesign -s "$APPLE_DEVELOPER_IDENTITY" --keychain $APPLE_KEYCHAIN_PATH --entitlements "$ENTITLEMENTS" --options=runtime --deep --timestamp --force "$TARGET/MacOS/Autogram"
codesign -s "$APPLE_DEVELOPER_IDENTITY" --keychain $APPLE_KEYCHAIN_PATH --entitlements "$ENTITLEMENTS" --options=runtime --deep --timestamp --force "$TARGET/MacOS/AutogramApp"
fi

0 comments on commit 03199b6

Please sign in to comment.