From 05a2db256d135164ac3c745a3c275074f30ac4bb Mon Sep 17 00:00:00 2001 From: ModStart Date: Tue, 21 Jan 2025 14:49:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9AMacOS=20=E6=89=93?= =?UTF-8?q?=E5=8C=85=E4=BD=BF=E7=94=A8=E5=AE=98=E6=96=B9=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main-build.yml | 16 +++++++++++++++- .github/workflows/tag-release.yml | 16 +++++++++++++++- package.json | 2 +- 3 files changed, 31 insertions(+), 3 deletions(-) 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",