Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(release): publish Linux .deb and .rpm alongside the AppImage #4071

Closedchukfinley(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/4071/headopened View on GitHub

Showing 7 changed files with 32 additions and 1 deletion (loading 4).

x
0 of 7 viewed, 7 left
21 additions and 1 deletion.github/workflows/release.ymlModified
View file
@@ -355,7 +355,7 @@
- label: Linux x64
runner: blacksmith-32vcpu-ubuntu-2404
platform: linux
- target: AppImage
+ target: AppImage,deb,rpm
arch: x64
rust_target: x86_64-unknown-linux-gnu
resource_key: linux-x64
@@ -515,6 +515,20 @@
Select-Object -Unique
"PSModulePath=$($modulePathEntries -join ';')" >> $env:GITHUB_ENV
​
+ # electron-builder's rpm target shells out to rpmbuild. The Ubuntu image
+ # ships it via the `rpm` package, but installing it here keeps the target
+ # working if the runner image ever drops it, and costs nothing when the
+ # binary is already present.
+ - name: Ensure rpmbuild is available
+ if: matrix.platform == 'linux' && contains(matrix.target, 'rpm')
+ shell: bash
+ run: |
+ if ! command -v rpmbuild >/dev/null 2>&1; then
+ sudo apt-get update
+ sudo apt-get install -y rpm
+ fi
+ rpmbuild --version
+​
- name: Build desktop artifact
shell: bash