Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(packaging): add deb and rpm desktop targets #5139

Closedbigpod98(GitHub profile, opens in a new tab)wants to merge 28 commits intomain fromrefs/pull/5139/headopened View on GitHub

Showing 8 changed files with 35 additions and 1 deletion (loading 5).

x
0 of 8 viewed, 8 left
20 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,19 @@
Select-Object -Unique
"PSModulePath=$($modulePathEntries -join ';')" >> $env:GITHUB_ENV
​
+ # electron-builder shells out to rpmbuild for the rpm target. The Ubuntu
+ # image ships it in the `rpm` package, so this is a no-op there; installing
+ # it only when missing keeps the target working if the image ever drops it.
+ - 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
env: