[chore-627] drop rpm and pacman in favor of flatpak

This commit is contained in:
silentrald
2024-11-09 12:02:00 +08:00
parent 196bdc04f5
commit 15f8d83c8d
5 changed files with 36 additions and 23 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.11.0
cache: "npm"
- run: npm ci
- run: npm run package
+15 -4
View File
@@ -20,16 +20,27 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install dependencies for rpm and pacman
run: sudo apt-get install -y rpm libarchive-tools
- name: Install flatpak packages
run: sudo apt-get install -y flatpak flatpak-builder
- name: Setup flatpak repo
run: |
flatpak remote-add --if-not-exists --user \
flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.11.0
cache: "npm"
- run: npm ci
- run: npm run publish:linux
- run: npm run build
- name: Build deb
run: npx electron-builder --publish always --linux deb --x64
- name: Build flatpak
run: env DEBUG="@malept/flatpak-bundler" npx electron-builder --publish always --linux flatpak
- name: Upload artifact
uses: actions/upload-artifact@v4