Skip to content

Commit

Permalink
fixed syntax typo
Browse files Browse the repository at this point in the history
  • Loading branch information
himwho committed Jan 21, 2024
1 parent 9b56ad0 commit 6e59305
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/juce_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ jobs:
/usr/bin/codesign -v --force -s "$MACOS_CERTIFICATE_NAME" --options runtime --entitlements osc_client/Resources/M1-OrientationOSC.entitlements --timestamp osc_client/build/M1-OrientationOSC_artefacts/Release/M1-OrientationOSC.app
- name: OC Package (macos)
if: runner.os == 'MacOS'
uses: akiojin/generate-mac-installer-github-action@v0.1.0
with:
root-directory: ${{ github.workspace }}/osc_client/build/M1-OrientationOSC_artefacts/Release
Expand All @@ -125,22 +126,20 @@ jobs:
version: ${{ env.VERSION }}
output-directory: ${{ github.workspace }}/osc_client/build/m1-OrientationOSC_artefacts/Release

- name: "OC Sign Package (macos)"
if: runner.os == 'MacOS'
# Extract the secrets we defined earlier as environment variables
env:
MACOS_INSTALLER_CERTIFICATE: ${{ secrets.MACOS_INSTALLER_CERTIFICATE }}
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
MACOS_INSTALLER_CERTIFICATE_NAME: ${{ secrets.MACOS_INSTALLER_CERTIFICATE_NAME }}
MACOS_CI_KEYCHAIN_PWD: ${{ secrets.MACOS_CI_KEYCHAIN_PWD }}
run: |
echo $MACOS_INSTALLER_CERTIFICATE | base64 --decode > installer_certificate.p12
security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain
security import installer_certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign -T /usr/bin/productsign
security set-key-partition-list -S apple-tool:,apple:,codesign:,productsign: -s -k "$MACOS_CI_KEYCHAIN_PWD" build.keychain
productsign --sign "${{ secrets.MACOS_INSTALLER_CERTIFICATE_NAME }}" ${{ github.workspace }}/osc_client/build/M1-OrientationOSC_artefacts/Release/M1-OrientationOSC.pkg ${{ github.workspace }}/osc_client/build/M1-OrientationOSC_artefacts/Release/signed/M1-OrientationOSC.pkg
- name: "OC Sign Package (macos)"
if: runner.os == 'MacOS'
# Extract the secrets we defined earlier as environment variables
env:
MACOS_INSTALLER_CERTIFICATE: ${{ secrets.MACOS_INSTALLER_CERTIFICATE }}
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
MACOS_INSTALLER_CERTIFICATE_NAME: ${{ secrets.MACOS_INSTALLER_CERTIFICATE_NAME }}
MACOS_CI_KEYCHAIN_PWD: ${{ secrets.MACOS_CI_KEYCHAIN_PWD }}
run: |
echo $MACOS_INSTALLER_CERTIFICATE | base64 --decode > installer_certificate.p12
security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain
security import installer_certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign -T /usr/bin/productsign
security set-key-partition-list -S apple-tool:,apple:,codesign:,productsign: -s -k "$MACOS_CI_KEYCHAIN_PWD" build.keychain
productsign --sign "${{ secrets.MACOS_INSTALLER_CERTIFICATE_NAME }}" ${{ github.workspace }}/osc_client/build/M1-OrientationOSC_artefacts/Release/M1-OrientationOSC.pkg ${{ github.workspace }}/osc_client/build/M1-OrientationOSC_artefacts/Release/signed/M1-OrientationOSC.pkg
- name: OC Notarize (macos)
if: runner.os == 'MacOS'
Expand Down

0 comments on commit 6e59305

Please sign in to comment.