build: fix snap build

This commit is contained in:
johannesjo 2026-05-01 22:48:04 +02:00
parent af7ba05845
commit 4d3160d2bc
2 changed files with 20 additions and 2 deletions

View file

@ -15,7 +15,16 @@ jobs:
steps: steps:
- name: Install Snapcraft - name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@fceeb3c308e76f3487e72ef608618de625fb7fe8 # v3 uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
with:
max_attempts: 3
timeout_minutes: 10
retry_wait_seconds: 30
command: |
if ! command -v snapcraft >/dev/null 2>&1; then
sudo snap install snapcraft --classic --channel stable
fi
snapcraft version
- run: yes | snapcraft promote superproductivity --from-channel latest/edge --to-channel latest/stable - run: yes | snapcraft promote superproductivity --from-channel latest/edge --to-channel latest/stable
env: # Workaround for https://github.com/snapcore/snapcraft/issues/4439 env: # Workaround for https://github.com/snapcore/snapcraft/issues/4439
SNAPCRAFT_HAS_TTY: 'true' SNAPCRAFT_HAS_TTY: 'true'

View file

@ -112,7 +112,16 @@ jobs:
run: npm run build run: npm run build
- name: Install Snapcraft - name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@fceeb3c308e76f3487e72ef608618de625fb7fe8 # v3 uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
with:
max_attempts: 3
timeout_minutes: 10
retry_wait_seconds: 30
command: |
if ! command -v snapcraft >/dev/null 2>&1; then
sudo snap install snapcraft --classic --channel stable
fi
snapcraft version
- name: Build/Release Electron app - name: Build/Release Electron app
uses: johannesjo/action-electron-builder@9ea9e2d991c97668843d57337848e3e2b1ffab3d # v1 uses: johannesjo/action-electron-builder@9ea9e2d991c97668843d57337848e3e2b1ffab3d # v1