mirror of
https://github.com/Drop-OSS/packages.git
synced 2026-01-30 20:55:18 +01:00
79 lines
3.3 KiB
YAML
79 lines
3.3 KiB
YAML
id: org.droposs.app
|
|
|
|
runtime: org.gnome.Platform
|
|
runtime-version: '48'
|
|
sdk: org.gnome.Sdk
|
|
|
|
command: drop-app
|
|
finish-args:
|
|
- --share=ipc
|
|
- --share=network
|
|
- --socket=fallback-x11
|
|
- --socket=wayland
|
|
- --socket=pulseaudio
|
|
- --device=all
|
|
- --share=network
|
|
- --allow=multiarch
|
|
- --allow=devel
|
|
- --talk-name=org.gnome.Mutter.DisplayConfig
|
|
- --talk-name=org.freedesktop.ScreenSaver
|
|
- --system-talk-name=org.freedesktop.UDisks2
|
|
- --filesystem=/run/media
|
|
# For Steam Deck HDR support
|
|
- --env=LD_LIBRARY_PATH=/usr/lib/extensions/vulkan/gamescope/lib
|
|
- --filesystem=xdg-run/gamescope-0:ro
|
|
# For Debian
|
|
- --filesystem=/media
|
|
- --filesystem=~/.config/MangoHud:ro
|
|
- --filesystem=~/.var/app/org.droposs.app/data/
|
|
- --env=PATH=/app/bin:/usr/bin:/app/utils/bin:/usr/lib/extensions/vulkan/MangoHud/bin/:/app/jre/bin/:/usr/lib/extensions/vulkan/gamescope/bin
|
|
- --env=GST_PLUGIN_SYSTEM_PATH=/app/lib32/gstreamer-1.0:/app/lib/gstreamer-1.0:/usr/lib/i386-linux-gnu/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
|
|
# Disable access to xdg-data/flatpak as it's causing a finish-args-unnecessary-xdg-data-access error.
|
|
# Flatpak talk API might be enough but this might break features like Steam games detection.
|
|
# - --filesystem=xdg-data/flatpak:ro
|
|
# Needed for appimages
|
|
- --env=APPIMAGE_EXTRACT_AND_RUN=1
|
|
# See: https://github.com/flathub/net.lutris.Lutris/pull/368#issuecomment-1751381312
|
|
- --env=WEBKIT_DISABLE_DMABUF_RENDERER=1
|
|
- --env=NO_TRAY_ICON=true
|
|
|
|
modules:
|
|
- shared-modules/SDL/SDL-1.2.15.json
|
|
- name: main
|
|
buildsystem: simple
|
|
|
|
sources:
|
|
# If you use GitHub releases, you can target an existing remote file
|
|
- type: file
|
|
url: https://github.com/Drop-OSS/drop-app/releases/download/v0.3.3/Drop.Desktop.Client_0.3.3_amd64.deb
|
|
sha256: c3da6761db3c9bc0c04b3083377069f9417509cad6db81b6ef838b55d9f32242 # This is required if you are using a remote source
|
|
only-arches: [x86_64]
|
|
- type: file
|
|
path: flatpak.metainfo.xml
|
|
build-commands:
|
|
- set -e
|
|
- ls
|
|
|
|
# Extract the deb package
|
|
- mkdir deb-extract
|
|
- ar -x *.deb --output deb-extract
|
|
- tar -C deb-extract -xf deb-extract/data.tar.gz
|
|
|
|
# Copy binary
|
|
- ls deb-extract
|
|
- ls deb-extract/usr
|
|
- ls deb-extract/usr/bin
|
|
- 'install -Dm755 deb-extract/usr/bin/drop-app /app/bin/drop-app'
|
|
|
|
# Copy desktop file + ensure the right icon is set
|
|
- cat deb-extract/usr/share/applications/Drop\ Desktop\ Client.desktop
|
|
- sed -i 's/^Icon=.*/Icon=org.droposs.app/' deb-extract/usr/share/applications/Drop\ Desktop\ Client.desktop
|
|
|
|
# Copy icons
|
|
- install -Dm644 deb-extract/usr/share/icons/hicolor/128x128/apps/drop-app.png /app/share/icons/hicolor/128x128/apps/org.droposs.app.png
|
|
- install -Dm644 deb-extract/usr/share/icons/hicolor/32x32/apps/drop-app.png /app/share/icons/hicolor/32x32/apps/org.droposs.app.png
|
|
- install -Dm644 deb-extract/usr/share/icons/hicolor/256x256@2/apps/drop-app.png /app/share/icons/hicolor/256x256@2/apps/org.droposs.app.png
|
|
|
|
- install -Dm644 deb-extract/usr/share/applications/Drop\ Desktop\ Client.desktop /app/share/applications/org.droposs.app.desktop
|
|
|
|
- install -Dm644 flatpak.metainfo.xml /app/share/metainfo/org.droposs.app.metainfo.xml |