Skip to content

Commit

Permalink
Update build-desktop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shufps authored Aug 22, 2023
1 parent ab68093 commit 112cd67
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ on:
type: choice
options:
- macos-11
- ubuntu-20.04
- self-hosted-ubuntu-22.04
- windows-2019
- self-hosted
stage:
description: 'Stage'
required: true
Expand Down Expand Up @@ -77,7 +76,7 @@ jobs:
sudo apt install -y gcc-multilib g++-multilib build-essential libssl-dev rpm libsecret-1-dev \
software-properties-common apt-transport-https libudev-dev libusb-1.0-0-dev \
llvm-dev libclang-dev clang
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'self-hosted'
if: matrix.os == 'self-hosted-ubuntu-22.04'

- name: Enable verbose output for electron-builder (macOS/Linux)
run: echo "DEBUG=electron-builder" >> $GITHUB_ENV
Expand Down Expand Up @@ -132,7 +131,7 @@ jobs:
- name: Build Electron app (Linux)
run: yarn compile:${STAGE}:linux
working-directory: packages/desktop
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'self-hosted'
if: matrix.os == 'self-hosted-ubuntu-22.04'

- name: Import GPG key (Linux)
run: |
Expand All @@ -141,19 +140,19 @@ jobs:
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'self-hosted'
if: matrix.os == 'self-hosted-ubuntu-22.04'

- name: Sign AppImage (Linux)
run: echo $GPG_PASSPHRASE | gpg --pinentry-mode loopback --batch --passphrase-fd 0 --armor --detach-sign --default-key contact@iota.org firefly-desktop*.AppImage
working-directory: packages/desktop/out
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'self-hosted'
if: matrix.os == 'self-hosted-ubuntu-22.04'

- name: Compute checksums (Linux)
run: for i in `ls | grep 'firefly-desktop*'` ; do sha256sum $i | awk {'print $1'} > $i.sha256 ; done
working-directory: packages/desktop/out
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'self-hosted'
if: matrix.os == 'self-hosted-ubuntu-22.04'

- name: Compute checksums (macOS)
run: for i in `ls | grep 'firefly-desktop*'` ; do shasum -a 256 $i | awk {'print $1'} > $i.sha256 ; done
Expand Down

0 comments on commit 112cd67

Please sign in to comment.