Skip to content

Commit

Permalink
Add the auto update for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrho committed Oct 22, 2024
1 parent 52027fe commit 26f8440
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
echo "Preventing keychain from locking..."
security set-keychain-settings -lut 3600 $KEYCHAIN_NAME
security show-keychain-info $KEYCHAIN_NAME
echo "Showing keychain info..."
security show-keychain-info $KEYCHAIN_NAME
Expand All @@ -95,6 +96,7 @@ jobs:
run: |
echo "Unlocking keychain..."
security unlock-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_NAME
security show-keychain-info $KEYCHAIN_NAME
source myenv/bin/activate
npm run make -- --platform=darwin --arch=arm64
Expand All @@ -104,22 +106,25 @@ jobs:
run: |
echo "Unlocking keychain..."
security unlock-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_NAME
security show-keychain-info $KEYCHAIN_NAME
source myenv/bin/activate
npm run make -- --platform=darwin --arch=x64
working-directory: ./jccm

- name: Notarize and Staple Packages
run: |
echo "Unlocking keychain..."
security unlock-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_NAME
set -ex # Exit on error and print commands
function notarize_and_verify() {
architecture=$1
pkg_path="./out/make/jccm-darwin-$architecture.pkg"
echo "Unlocking keychain for ${architecture}..."
security unlock-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_NAME
security show-keychain-info $KEYCHAIN_NAME
echo "Submitting $pkg_path for Notarization..."
xcrun notarytool submit $pkg_path --keychain-profile jccm --wait
Expand Down

0 comments on commit 26f8440

Please sign in to comment.