[chore] added rpm build for linux

This commit is contained in:
silentrald
2025-01-18 21:43:19 +08:00
parent effe0608e1
commit b284b33669
3 changed files with 12 additions and 7 deletions
+6 -5
View File
@@ -24,14 +24,15 @@ jobs:
with:
node-version: 22.11.0
cache: "npm"
# Install and setup rpm/Flatpak for Ubuntu
- name: Install rpm/flatpak packages (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y flatpak flatpak-builder rpm libarchive-tools
- run: npm ci
- run: npm run package
# Install and setup Flatpak for Ubuntu
- name: Install flatpak packages (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y flatpak flatpak-builder
- name: Setup flatpak repo (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: |
+5 -2
View File
@@ -20,8 +20,8 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install flatpak packages
run: sudo apt-get install -y flatpak flatpak-builder
- name: Install rpm/flatpak packages
run: sudo apt-get install -y flatpak flatpak-builder rpm libarchive-tools
- name: Setup flatpak repo
run: |
@@ -39,6 +39,9 @@ jobs:
- name: Build deb
run: npx electron-builder --config electron-builder.config.js --publish always --linux deb --x64
- name: Build rpm
run: npx electron-builder --config electron-builder.config.js --publish always --linux rpm --x64
- name: Build flatpak
run: env DEBUG="@malept/flatpak-bundler" npx electron-builder --config electron-builder.config.js --publish always --linux flatpak
+1
View File
@@ -29,6 +29,7 @@ const config = {
linux: {
target: [
"deb",
"rpm",
],
icon: "./build/icons/png",
category: "Utility;Game;",