From 26f8440a8da051248793ce47d6371c7f3327d1d0 Mon Sep 17 00:00:00 2001 From: Simon Rho Date: Tue, 22 Oct 2024 13:25:25 -0400 Subject: [PATCH] Add the auto update for Windows --- .github/workflows/build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 873e989..8f8ec82 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 @@ -104,6 +106,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=x64 @@ -111,15 +114,17 @@ jobs: - 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