Skip to content

Commit

Permalink
bringing back simplier flatpak manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
madeofpendletonwool committed Dec 10, 2024
1 parent 1ed1d85 commit 9af6762
Showing 1 changed file with 15 additions and 29 deletions.
44 changes: 15 additions & 29 deletions clients/flatpak/com.gooseberrydevelopment.pinepods.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,25 @@
id: com.gooseberrydevelopment.pinepods

runtime: org.gnome.Platform
runtime-version: "46"
sdk: org.gnome.Sdk

command: tauri-app
finish-args:
- --socket=wayland # Permission needed to show the window
- --socket=fallback-x11 # Permission needed to show the window
- --device=dri # OpenGL, not necessary for all projects
- --socket=wayland
- --socket=fallback-x11
- --device=dri
- --share=ipc
- --socket=pulseaudio # For audio support
- --share=network # For network access
- --socket=pulseaudio
- --share=network

modules:
- name: ubuntu-libs
buildsystem: simple
build-commands:
# First install the Ubuntu packages
- apt-get update -y
- apt-get install -y libayatana-appindicator3-1
# Then copy them to the Flatpak environment
- cp -a /usr/lib/x86_64-linux-gnu/libayatana-appindicator3.so* /app/lib/
- cp -a /usr/lib/x86_64-linux-gnu/libayatana-indicator3.so* /app/lib/
- cp -a /usr/lib/x86_64-linux-gnu/libdbusmenu-glib.so* /app/lib/
- cp -a /usr/lib/x86_64-linux-gnu/libdbusmenu-gtk3.so* /app/lib/
- name: binary
buildsystem: simple
sources:
- type: file
url: https://github.com/madeofpendletonwool/PinePods/releases/download/0.6.6/pinepods_0.6.6_amd64.deb
sha256: 08305b5521e2cf0622e084f2b8f7f31f8a989fc7f407a7050fa3649facd61469 # This is required if you are using a remote source
only-arches: [x86_64] #This source is only used on x86_64 Computers
url: https://github.com/madeofpendletonwool/PinePods/releases/download/0.7.0/pinepods_0.7.0_amd64.deb
sha256: 08305b5521e2cf0622e084f2b8f7f31f8a989fc7f407a7050fa3649facd61469
only-arches: [x86_64]
dest-filename: pinepods.deb
- type: file
path: ../../web/src-tauri/icons/32x32.png
- type: file
Expand All @@ -40,16 +28,14 @@ modules:
path: ../../web/src-tauri/icons/256x256.png
- type: file
path: ./com.gooseberrydevelopment.pinepods.metainfo.xml
# This path points to the binary file which was created in the .deb bundle.
# Tauri also creates a folder which corresponds to the content of the unpacked .deb.

build-commands:
- ar -x *.deb
- ar -x pinepods.deb
- tar -xf data.tar.gz
- sed -i 's/Icon=app/Icon=com.gooseberrydevelopment.pinepods/' usr/share/applications/Pinepods.desktop
- sed -i 's/Exec=app/Exec=tauri-app/' usr/share/applications/Pinepods.desktop
- "install -Dm755 usr/bin/app /app/bin/tauri-app"
- install -Dm644 usr/share/applications/Pinepods.desktop /app/share/applications/com.gooseberrydevelopment.pinepods.desktop
- mkdir -p /app/bin
- cp -r usr/bin/* /app/bin
- install -Dm644 32x32.png /app/share/icons/hicolor/32x32/apps/com.gooseberrydevelopment.pinepods.png
- install -Dm644 128x128.png /app/share/icons/hicolor/128x128/apps/com.gooseberrydevelopment.pinepods.png
- install -Dm644 256x256.png /app/share/icons/hicolor/256x256@2/apps/com.gooseberrydevelopment.pinepods.png
- install -Dm644 256x256.png /app/share/icons/hicolor/256x256/apps/com.gooseberrydevelopment.pinepods.png
- install -Dm644 usr/share/applications/Pinepods.desktop /app/share/applications/com.gooseberrydevelopment.pinepods.desktop
- install -Dm644 com.gooseberrydevelopment.pinepods.metainfo.xml /app/share/metainfo/com.gooseberrydevelopment.pinepods.metainfo.xml

0 comments on commit 9af6762

Please sign in to comment.