Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(release): publish a Linux .deb alongside the AppImage #4887

ClosedNaveDanan(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/4887/headopened View on GitHub

Showing 6 changed files with 43 additions and 2 deletions (loading 3).

x
0 of 6 viewed, 6 left
34 additions and 0 deletions.github/workflows/release.ymlModified
View file
@@ -573,6 +573,37 @@
​
vp run dist:desktop:artifact "${args[@]}"
​
+ - name: Build Linux deb package
+ if: matrix.platform == 'linux'
+ shell: bash
+ run: |
+ set -euo pipefail
+ shopt -s nullglob
+​
+ # electron-builder writes update metadata for every fpm target, so the
+ # deb build would overwrite the AppImage updater manifest. Linux
+ # auto-update only supports the AppImage, so stash the manifest and put
+ # it back once the deb is packaged.
+ manifest_backup="$RUNNER_TEMP/linux-update-manifest"
+ mkdir -p "$manifest_backup"
+ for manifest in release/*-linux*.yml; do
+ cp "$manifest" "$manifest_backup/"
+ done
+​
+ # --skip-build reuses the app compiled by the previous step; this only
+ # reruns packaging.
+ vp run dist:desktop:artifact \
+ --platform linux \
+ --target deb \
+ --arch "${{ matrix.arch }}" \
+ --build-version "${{ needs.preflight.outputs.version }}" \
+ --skip-build \
+ --verbose