[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
+19 -9
View File
@@ -4,27 +4,37 @@
Go to [Releases](https://github.com/Zagrios/bs-manager/releases) page and go to the latest release. Download the necessary build installer for your distro (see below).
### Ubuntu, Debian
### Universal (flatpak)
You are required to have `flatpak` installed your system. After installing that, download the `.flatpak` file in the releases and run the following command:
Install the `.deb` build and run the following command:
```bash
apt install bsmanager.deb
flatpak install ./bsmanager.flatpak
```
### CentOS, Fedora
If you are getting errors like packages not existing, run this command so that it finds the correct packages.
Install the `.rpm` build and run the following command:
```bash
rpm -i bsmanager.rpm
sudo flatpak remote-add --if-not-exists --system flathub https://flathub.org/repo/flathub.flatpakrepo
# or
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
```
### Arch, Manjaro
### Ubuntu, Debian (deb)
Install the `.pacman` build and run the following command:
Download the `.deb` file in the releases and run the following command:
```bash
pacman -U bsmanager.pacman
dpkg -i ./bsmanager.deb
```
### Arch (AUR)
Refer to [bs-manager-git](https://aur.archlinux.org/packages/bs-manager-git).
To install AUR packages, you need to install [yay](https://github.com/Jguer/yay).
## Proton Setup
[Proton](https://github.com/ValveSoftware/Proton) is needed to run the Beat Saber executable under Linux. You need to download this from either from Steam or building it from their GitHub repo.
-8
View File
@@ -32,8 +32,6 @@ const config: Configuration = {
linux: {
target: [
"deb",
"rpm",
"pacman"
],
icon: "./build/icons/png",
category: "Utility;Game;",
@@ -55,12 +53,6 @@ const config: Configuration = {
deb: {
fpm: ["--after-install=build/after-install.sh"],
},
rpm: {
fpm: ["--after-install=build/after-install.sh"],
},
pacman: {
fpm: ["--after-install=build/after-install.sh"],
},
directories: {
app: "release/app",
buildResources: "assets",
+1 -1
View File
@@ -21,7 +21,7 @@
"test": "jest",
"test:unit": "jest ./src/__tests__/unit",
"publish": "npm run build && electron-builder --publish always --win --x64",
"publish:linux": "npm run build && electron-builder --publish always --linux --x64"
"publish:linux": "npm run build && electron-builder --publish never --linux --x64"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [