Update Workflow
This commit is contained in:
parent
c57feb6a67
commit
a312eaff13
16
.github/workflows/release-ci.yml
vendored
16
.github/workflows/release-ci.yml
vendored
@ -42,6 +42,19 @@ jobs:
|
|||||||
sudo apt-get -y install libglu1-mesa-dev libfontconfig1-dev libx11-xcb-dev libicu-dev libxcb-*
|
sudo apt-get -y install libglu1-mesa-dev libfontconfig1-dev libx11-xcb-dev libicu-dev libxcb-*
|
||||||
if: matrix.os == 'ubuntu-16.04'
|
if: matrix.os == 'ubuntu-16.04'
|
||||||
|
|
||||||
|
- name: Codesign Configuration (macOS)
|
||||||
|
env:
|
||||||
|
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
|
||||||
|
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
|
||||||
|
run: |
|
||||||
|
echo ${{MACOS_CERTIFICATE}} | base64 --decode > certificate.p12
|
||||||
|
security create-keychain -p gpgfrontend build.keychain
|
||||||
|
security default-keychain -s build.keychain
|
||||||
|
security unlock-keychain -p gpgfrontend build.keychain
|
||||||
|
security import certificate.p12 -k build.keychain -P ${{MACOS_CERTIFICATE_PWD}} -T /usr/bin/codesign
|
||||||
|
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k gpgfrontend build.keychain
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
|
||||||
- name: Install Dependence (macOS)
|
- name: Install Dependence (macOS)
|
||||||
run: |
|
run: |
|
||||||
brew install cmake git autoconf automake qt@5 gcc texinfo gettext libgpg-error libassuan gpgme openssl
|
brew install cmake git autoconf automake qt@5 gcc texinfo gettext libgpg-error libassuan gpgme openssl
|
||||||
@ -135,10 +148,13 @@ jobs:
|
|||||||
- name: Package App Bundle (macOS)
|
- name: Package App Bundle (macOS)
|
||||||
run: |
|
run: |
|
||||||
macdeployqt ${{github.workspace}}/build/release/GpgFrontend.app
|
macdeployqt ${{github.workspace}}/build/release/GpgFrontend.app
|
||||||
|
codesign -s "Developer ID Application: Yu Hu (4279AWUL3X)" ${{github.workspace}}/build/release/GpgFrontend.app --deep -v
|
||||||
mkdir ${{github.workspace}}/build/tmp/
|
mkdir ${{github.workspace}}/build/tmp/
|
||||||
hdiutil create ${{github.workspace}}/build/tmp/tmp.dmg -ov -volname "GpgFrontend" -fs HFS+ -srcfolder ${{github.workspace}}/build/release/
|
hdiutil create ${{github.workspace}}/build/tmp/tmp.dmg -ov -volname "GpgFrontend" -fs HFS+ -srcfolder ${{github.workspace}}/build/release/
|
||||||
mkdir ${{github.workspace}}/build/artifactOut
|
mkdir ${{github.workspace}}/build/artifactOut
|
||||||
hdiutil convert ${{github.workspace}}/build/tmp/tmp.dmg -format UDZO -o ${{github.workspace}}/build/artifactOut/GpgFrontend.dmg
|
hdiutil convert ${{github.workspace}}/build/tmp/tmp.dmg -format UDZO -o ${{github.workspace}}/build/artifactOut/GpgFrontend.dmg
|
||||||
|
codesign -s "Developer ID Application: Yu Hu (4279AWUL3X)" GpgFrontend.dmg
|
||||||
|
mv ${{github.workspace}}/build/artifactOut/GpgFrontend.dmg ${{github.workspace}}/build/artifactOut/GpgFrontend-${{steps.vars.outputs.sha_short}}-x86_64.dmg
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
|
|
||||||
- name: Package App Image (Linux)
|
- name: Package App Image (Linux)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user