mirror of
https://github.com/block/goose.git
synced 2026-04-28 11:39:43 +00:00
feat: add flatpak support for linux (#6387)
Signed-off-by: The-Best-Codes <bestcodes.official@gmail.com>
This commit is contained in:
parent
eaa05f9636
commit
20b8cbd41b
10 changed files with 723 additions and 490 deletions
29
.github/workflows/bundle-desktop-linux.yml
vendored
29
.github/workflows/bundle-desktop-linux.yml
vendored
|
|
@ -21,7 +21,7 @@ name: "Bundle Desktop (Linux)"
|
|||
jobs:
|
||||
build-desktop-linux:
|
||||
name: Build Desktop (Linux)
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-x86-16core-64gb
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
@ -76,7 +76,14 @@ jobs:
|
|||
rpm \
|
||||
fakeroot \
|
||||
dpkg-dev \
|
||||
protobuf-compiler
|
||||
protobuf-compiler \
|
||||
flatpak \
|
||||
flatpak-builder \
|
||||
elfutils
|
||||
|
||||
- name: Setup Flatpak Runtimes
|
||||
run: |
|
||||
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
- name: Activate hermit and set CARGO_HOME
|
||||
run: |
|
||||
|
|
@ -136,14 +143,14 @@ jobs:
|
|||
run: |
|
||||
source ./bin/activate-hermit
|
||||
cd ui/desktop
|
||||
echo "Building Linux packages (.deb and .rpm)..."
|
||||
echo "Building Linux packages (.deb, .rpm, and .flatpak)..."
|
||||
|
||||
# Build both .deb and .rpm packages
|
||||
# Build all configured packages
|
||||
npm run make -- --platform=linux --arch=x64
|
||||
|
||||
echo "Build completed. Checking output..."
|
||||
ls -la out/
|
||||
find out/ -name "*.deb" -o -name "*.rpm" | head -10
|
||||
find out/ -name "*.deb" -o -name "*.rpm" -o -name "*.flatpak" | head -10
|
||||
|
||||
- name: List generated files
|
||||
run: |
|
||||
|
|
@ -151,10 +158,10 @@ jobs:
|
|||
find ui/desktop/out/ -type f | head -20
|
||||
echo ""
|
||||
echo "=== Package files specifically ==="
|
||||
find ui/desktop/out/ -name "*.deb" -o -name "*.rpm"
|
||||
find ui/desktop/out/ -name "*.deb" -o -name "*.rpm" -o -name "*.flatpak"
|
||||
echo ""
|
||||
echo "=== File sizes ==="
|
||||
find ui/desktop/out/ -name "*.deb" -o -name "*.rpm" -exec ls -lh {} \;
|
||||
find ui/desktop/out/ -name "*.deb" -o -name "*.rpm" -o -name "*.flatpak" -exec ls -lh {} \;
|
||||
|
||||
- name: Upload .deb package
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
|
|
@ -170,6 +177,13 @@ jobs:
|
|||
path: ui/desktop/out/make/rpm/x64/*.rpm
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Upload .flatpak package
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: Goose-linux-x64-flatpak
|
||||
path: ui/desktop/out/make/flatpak/**/*.flatpak
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Upload combined Linux packages
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
|
|
@ -177,4 +191,5 @@ jobs:
|
|||
path: |
|
||||
ui/desktop/out/make/deb/x64/*.deb
|
||||
ui/desktop/out/make/rpm/x64/*.rpm
|
||||
ui/desktop/out/make/flatpak/**/*.flatpak
|
||||
if-no-files-found: error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue