Merge pull request #755 from trheyi/main

Refactor Makefile to include MacOS Application Signing
This commit is contained in:
Max 2024-09-28 09:08:16 +08:00 committed by GitHub
commit d2f53abe47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,27 +108,21 @@ jobs:
mv dist/release/yao-$VERSION-dev-darwin-arm64 dist/release/yao-$VERSION-unstable-darwin-arm64 mv dist/release/yao-$VERSION-dev-darwin-arm64 dist/release/yao-$VERSION-unstable-darwin-arm64
mv dist/release/yao-$VERSION-dev-darwin-amd64 dist/release/yao-$VERSION-unstable-darwin-amd64 mv dist/release/yao-$VERSION-dev-darwin-amd64 dist/release/yao-$VERSION-unstable-darwin-amd64
# - name: Push arm64 To Silicon Valley - name: Install Certificates
# uses: TencentCloud/cos-action@v1 run: |
# with: mkdir -p certs
# secret_id: ${{ secrets.COS_ID }} echo "${{ secrets.APPLE_DEVELOPERIDG2CA }}" | base64 --decode > certs/DeveloperIDG2CA.cer
# secret_key: ${{ secrets.COS_KEY }} echo "${{ secrets.APPLE_DISTRIBUTION }}" | base64 --decode > certs/distribution.cer
# cos_bucket: release-sv-1252011659
# cos_region: na-siliconvalley
# local_path: dist/release/yao-${{ env.VERSION }}-unstable-darwin-arm64
# remote_path: /archives/yao-${{ env.VERSION }}-unstable-darwin-arm64
# clean: false
# - name: Push amd64 To Silicon Valley - name: Import Certificates
# uses: TencentCloud/cos-action@v1 run: |
# with: security import ./certs/DeveloperIDG2CA.cer -k ~/Library/Keychains/login.keychain-db -T /usr/bin/codesign
# secret_id: ${{ secrets.COS_ID }} security import ./certs/distribution.cer -k ~/Library/Keychains/login.keychain-db -T /usr/bin/codesign
# secret_key: ${{ secrets.COS_KEY }}
# cos_bucket: release-sv-1252011659 - name: Sign Artifacts
# cos_region: na-siliconvalley run: |
# local_path: dist/release/yao-${{ env.VERSION }}-unstable-darwin-amd64 codesign --deep --force --verify --verbose --sign "${{ secrets.APPLE_SIGN }}" dist/release/yao-$VERSION-unstable-darwin-arm64
# remote_path: /archives/yao-${{ env.VERSION }}-unstable-darwin-amd64 codesign --deep --force --verify --verbose --sign "${{ secrets.APPLE_SIGN }}" dist/release/yao-$VERSION-unstable-darwin-amd64
# clean: false
- name: Archive production artifacts - name: Archive production artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4