diff --git a/.github/workflows/main-build.yml b/.github/workflows/main-build.yml index d5416ad..eb8a5ab 100644 --- a/.github/workflows/main-build.yml +++ b/.github/workflows/main-build.yml @@ -43,7 +43,21 @@ jobs: echo "find-identity" security find-identity -p codesigning echo "$MACOS_CERTIFICATE" | base64 --decode > certificate.p12 - security import certificate.p12 -P "$MACOS_CERTIFICATE_PASSWORD" -T /usr/bin/codesign + security create-keychain -p "" build.keychain + security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PASSWORD" -T /usr/bin/codesign + security list-keychains -s build.keychain + security set-keychain-settings -t 3600 -u build.keychain + security unlock-keychain -p "" build.keychain + echo "find-identity" + security find-identity -v -p codesigning build.keychain + echo "find-identity" + security find-identity -p codesigning + echo "set-key-partition-list" + security set-key-partition-list -S apple-tool:,apple: -s -k "" -l "Mac Developer ID Application: Xi'an Yanyi Information Technology Co., Ltd" -t private build.keychain + echo "find-certificate" + security export -k build.keychain -t certs -f x509 -p -o certificate.cer + echo "add-trusted-cert" + sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain certificate.cer echo "find-identity" security find-identity -p codesigning diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml index 83077c5..ce785b6 100644 --- a/.github/workflows/tag-release.yml +++ b/.github/workflows/tag-release.yml @@ -42,7 +42,21 @@ jobs: echo "find-identity" security find-identity -p codesigning echo "$MACOS_CERTIFICATE" | base64 --decode > certificate.p12 - security import certificate.p12 -P "$MACOS_CERTIFICATE_PASSWORD" -T /usr/bin/codesign + security create-keychain -p "" build.keychain + security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PASSWORD" -T /usr/bin/codesign + security list-keychains -s build.keychain + security set-keychain-settings -t 3600 -u build.keychain + security unlock-keychain -p "" build.keychain + echo "find-identity" + security find-identity -v -p codesigning build.keychain + echo "find-identity" + security find-identity -p codesigning + echo "set-key-partition-list" + security set-key-partition-list -S apple-tool:,apple: -s -k "" -l "Mac Developer ID Application: Xi'an Yanyi Information Technology Co., Ltd" -t private build.keychain + echo "find-certificate" + security export -k build.keychain -t certs -f x509 -p -o certificate.cer + echo "add-trusted-cert" + sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain certificate.cer echo "find-identity" security find-identity -p codesigning diff --git a/package.json b/package.json index 37b9577..18992be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "focusany", - "version": "0.5.0", + "version": "0.6.0-beta", "main": "dist-electron/main/index.js", "description": "FocusAny", "author": "ModStartLib",