mirror of https://github.com/PCSX2/pcsx2.git
CI: Sign and notarize macos binaries
This commit is contained in:
parent
0887002ad4
commit
ef5d5c780b
|
@ -25,6 +25,10 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
sign:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_macos:
|
build_macos:
|
||||||
|
@ -143,6 +147,22 @@ jobs:
|
||||||
run: make -j$(getconf _NPROCESSORS_ONLN) unittests
|
run: make -j$(getconf _NPROCESSORS_ONLN) unittests
|
||||||
|
|
||||||
- name: Prepare Build Artifacts
|
- name: Prepare Build Artifacts
|
||||||
|
run: mv build/pcsx2*/PCSX2.app Build.app
|
||||||
|
|
||||||
|
- name: Sign binary
|
||||||
|
if: ${{ inputs.sign }}
|
||||||
|
uses: lando/code-sign-action@v2
|
||||||
|
with:
|
||||||
|
file: "Build.app"
|
||||||
|
certificate-data: ${{ secrets.APPLE_CERT_DATA }}
|
||||||
|
certificate-password: ${{ secrets.APPLE_CERT_PASSWORD }}
|
||||||
|
apple-notary-user: ${{ secrets.APPLE_NOTARY_USER }}
|
||||||
|
apple-notary-password: ${{ secrets.APPLE_NOTARY_PASSWORD }}
|
||||||
|
apple-team-id: ${{ secrets.APPLE_TEAM_ID }}
|
||||||
|
apple-notary-tool: altool
|
||||||
|
apple-product-id: net.pcsx2.pcsx2
|
||||||
|
|
||||||
|
- name: Zip Build Artifacts
|
||||||
run: |
|
run: |
|
||||||
TAG="$(git tag --points-at HEAD)"
|
TAG="$(git tag --points-at HEAD)"
|
||||||
if [ -z "$TAG" ]; then
|
if [ -z "$TAG" ]; then
|
||||||
|
@ -150,7 +170,7 @@ jobs:
|
||||||
else
|
else
|
||||||
APPNAME="PCSX2-$TAG"
|
APPNAME="PCSX2-$TAG"
|
||||||
fi
|
fi
|
||||||
mv build/pcsx2*/PCSX2.app "$APPNAME.app"
|
mv Build.app "$APPNAME.app"
|
||||||
tar --options xz:compression-level=9 -cvJf "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.xz" "$APPNAME.app"
|
tar --options xz:compression-level=9 -cvJf "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.xz" "$APPNAME.app"
|
||||||
mkdir ci-artifacts
|
mkdir ci-artifacts
|
||||||
cp "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.xz" ci-artifacts/macOS.tar.xz
|
cp "${{ steps.artifact-metadata.outputs.artifact-name }}.tar.xz" ci-artifacts/macOS.tar.xz
|
||||||
|
|
|
@ -16,4 +16,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
jobName: "MacOS Build"
|
jobName: "MacOS Build"
|
||||||
artifactPrefixName: "PCSX2-macos-Qt"
|
artifactPrefixName: "PCSX2-macos-Qt"
|
||||||
|
sign: true # testing
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
|
@ -148,6 +148,7 @@ jobs:
|
||||||
artifactPrefixName: "PCSX2-macos-Qt"
|
artifactPrefixName: "PCSX2-macos-Qt"
|
||||||
fetchTags: true
|
fetchTags: true
|
||||||
stableBuild: ${{ github.event_name == 'workflow_dispatch' && inputs.is_prelease == 'false' }}
|
stableBuild: ${{ github.event_name == 'workflow_dispatch' && inputs.is_prelease == 'false' }}
|
||||||
|
sign: true
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
# Upload the Artifacts
|
# Upload the Artifacts
|
||||||
|
|
Loading…
Reference in New Issue