修正OS X CI错误 (#166)

* 增加OS X签名

等证书搞好之后改一下里面的id之类的就行。

* 添加证书信息

* 修正OS X CI错误
This commit is contained in:
Trebor Huang
2021-08-04 20:11:07 +08:00
committed by GitHub
parent 0c839790fe
commit 60600dbe2f
2 changed files with 5 additions and 8 deletions

View File

@@ -102,16 +102,14 @@ jobs:
python3 .github/workflows/updateOSXVersion.py
mv Techmino.love Techmino.app/Contents/Resources
- name: Codesign executable
# <identity-id> can be found at running `security find-identity -v`
# <your-password> is any password you like, it is there just to create the keychain
# Add in secrets:
# In secrets:
# - MACOS_CERTIFICATE: the *.p12 Developer ID Certificate, encoded in base64
# - MACOS_CERTIFICATE_PWD: The password
env:
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
run: |
echo $MACOS_CERTIFICATE | base64 decode > certificate.p12
echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
security create-keychain -p Techminohaowan build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p Techminohaowan build.keychain