mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
Build flatpak in the build action
This commit is contained in:
@@ -27,6 +27,24 @@ jobs:
|
||||
- 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: |
|
||||
flatpak remote-add --if-not-exists --user \
|
||||
flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
# Build Flatpak package
|
||||
- name: Build Flatpak (Ubuntu only)
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
env DEBUG="@malept/flatpak-bundler" \
|
||||
npx electron-builder --config electron-builder.config.js --publish never --linux flatpak
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user