Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt at flatpak build #2316

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ jobs:
#check-latest: true
#cache: 'npm'
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install dpkg fakeroot rpm build-essential libudev-dev
run: |
sudo apt-get update && sudo apt-get -y install dpkg fakeroot rpm build-essential libudev-dev flatpak flatpak-builder elfutils
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
npm install --save-dev @electron-forge/maker-flatpak
- name: Install deps
uses: nick-fields/retry@v3
with:
Expand Down Expand Up @@ -69,6 +72,13 @@ jobs:
with:
name: ${{ env.BUILD_NAME }}_ZIP
path: ./out/make/zip/linux/x64/*.zip
- name: Upload Linux flatpak
uses: actions/upload-artifact@v4
with:
name: ${{ env.BUILD_NAME }}_ZIP
path: ./out/make/zip/linux/x64/*.flatpak



build-linux-aarch64:
runs-on: ubuntu-24.04-arm
Expand Down Expand Up @@ -97,7 +107,9 @@ jobs:
#check-latest: true
#cache: 'npm'
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install dpkg fakeroot rpm build-essential libudev-dev
run: |
sudo apt-get update && sudo apt-get -y install dpkg fakeroot rpm build-essential libudev-dev flatpak flatpak-builder elfutils
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
- name: Install deps
uses: nick-fields/retry@v3
with:
Expand Down Expand Up @@ -127,6 +139,11 @@ jobs:
with:
name: ${{ env.BUILD_NAME }}_ZIP
path: ./out/make/zip/linux/arm64/*.zip
- name: Upload Linux flatpak
uses: actions/upload-artifact@v4
with:
name: ${{ env.BUILD_NAME }}_ZIP
path: ./out/make/zip/linux/arm64/*.flatpak

build-mac-arm64:
runs-on: macos-13
Expand Down
14 changes: 14 additions & 0 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,19 @@ module.exports = {
}
},
},
{
name: '@electron-forge/maker-flatpak',
config: {
options: {
name: "inav-configurator",
productName: "INAV Configurator",
license: "GPL-3.0",
categories: ["Utility"],
icon: "./assets/linux/icon/inav_icon_128.png",
description: "Configurator for the open source flight controller software INAV.",
homepage: "https://github.com/inavflight/",
}
},
},
],
};
Loading
Loading