Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Commit

Permalink
try again to sign using an action this time
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu committed Jul 24, 2023
1 parent caddf86 commit 93c74a9
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 10 deletions.
34 changes: 24 additions & 10 deletions .github/workflows/macos_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,31 @@ jobs:
platform: macos
target: ${{ matrix.target }}

- name: Sign frameworks
shell: pwsh

- name: Sign binary
uses: lando/code-sign-action@v2
env:
APPLE_CERT_BASE64: ${{ secrets.PROD_MACOS_CERTIFICATE }}
APPLE_CERT_PASSWORD: ${{ secrets.PROD_MACOS_CERTIFICATE_PWD }}
APPLE_DEV_ID: ${{ secrets.PROD_MACOS_NOTARIZATION_APPLE_ID }}
APPLE_DEV_TEAM_ID: ${{ secrets.PROD_MACOS_NOTARIZATION_TEAM_ID }}
APPLE_DEV_PASSWORD: ${{ secrets.PROD_MACOS_NOTARIZATION_PWD }}
APPLE_DEV_APP_ID: ${{ secrets.PROD_MACOS_APPLE_DEV_APP_ID }}
run: gci -R ./dist/*.framework | ./scripts/ci-sign-macos.ps1
if: ${{ env.APPLE_DEV_ID }}
apple-notary-user: ${{ secrets.PROD_MACOS_NOTARIZATION_APPLE_ID }}
with:
file: dist/addons/godot-box2d/bin/libgodot-box2d.macos.${{ matrix.target }}.framework
certificate-data: ${{ secrets.PROD_MACOS_CERTIFICATE }}
certificate-password: ${{ secrets.PROD_MACOS_CERTIFICATE_PWD }}
apple-team-id: ${{ secrets.PROD_MACOS_NOTARIZATION_TEAM_ID }}
apple-notary-user: ${{ secrets.PROD_MACOS_NOTARIZATION_APPLE_ID }}
apple-notary-password: ${{ secrets.PROD_MACOS_NOTARIZATION_PWD }}
apple-product-id: "dev.appsinacup.code-sign-action"

#- name: Sign frameworks
# shell: pwsh
# env:
# APPLE_CERT_BASE64: ${{ secrets.PROD_MACOS_CERTIFICATE }}
# APPLE_CERT_PASSWORD: ${{ secrets.PROD_MACOS_CERTIFICATE_PWD }}
# APPLE_DEV_ID: ${{ secrets.PROD_MACOS_NOTARIZATION_APPLE_ID }}
# APPLE_DEV_TEAM_ID: ${{ secrets.PROD_MACOS_NOTARIZATION_TEAM_ID }}
# APPLE_DEV_PASSWORD: ${{ secrets.PROD_MACOS_NOTARIZATION_PWD }}
# APPLE_DEV_APP_ID: ${{ secrets.PROD_MACOS_APPLE_DEV_APP_ID }}
# run: gci -R ./dist/*.framework | ./scripts/ci-sign-macos.ps1
# if: ${{ env.APPLE_DEV_ID }}

- name: Upload ${{ matrix.target }} ${{ matrix.arch }}
uses: ./.github/actions/upload
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict/>
<key>files2</key>
<dict/>
<key>rules</key>
<dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
Binary file not shown.

0 comments on commit 93c74a9

Please sign in to comment.