Flatpak build support (#112)

* Use XDG_CONFIG_HOME

* Migrate from config v0 to v1

* Start work on Flatpak packaging

* add Keywords, StartupNotify and improve the Comment

* Sync w/ upstream flatpak branch

* Fixes for egui transition

* More flatpak fixes

* Fix icon error

* add itch folder to permissions

* Fix main after rebase

Co-authored-by: casept <davids.paskevics@gmail.com>
Co-authored-by: jrt <git@jrtberlin.de>
This commit is contained in:
Philip Kristoffersen
2022-05-01 19:36:03 +02:00
committed by GitHub
co-authored by casept jrt
parent 81ddcb6959
commit 1350a89aaf
9 changed files with 4795 additions and 0 deletions
+70
View File
@@ -0,0 +1,70 @@
app-id: dk.philipk.BoilR
command: boilr
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
# To pick up vendored deps
CARGO_HOME: /run/build/boilr/cargo
RUSTFLAGS: "-L /app/lib/"
command: boilr
finish-args:
- --filesystem=xdg-data/Steam:rw
- --filesystem=~/.steam:rw # Steam (Non-flatpak)
- --filesystem=~/.var/app/com.valvesoftware.Steam:rw # Steam (Flatpak)
- --filesystem=xdg-data/lutris:rw # Lutris (non-flatpak)
- --filesystem=~/.var/app/net.lutris.Lutris:rw # Lutris (Flatpak)
- --filesystem=~/Games/Heroic:rw # Heroic (non-flatpak)
- --filesystem=~/.var/app/com.heroicgameslauncher.hgl:rw # Heroic (Flatpak)
- --filesystem=~/.config/itch:rw # Itch
- --share=network
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --device=dri
- --env=PATH=/app/bin:/usr/bin
modules:
- shared-modules/glu/glu-9.json
- name: boilr
buildsystem: simple
sources:
- type: dir
path: ../
- cargo-lock.json
build-commands:
- cargo --offline fetch --manifest-path Cargo.toml --verbose
- cargo --offline build --release --verbose
- install -Dm755 ./target/release/boilr -t /app/bin/
- name: boilr-icon
buildsystem: simple
sources:
- type: file
path: ../resources/dk.philipk.BoilR.png
build-commands:
- install -Dm644 dk.philipk.BoilR.png -t /app/share/icons/hicolor/32x32/apps
- name: boilr-desktop
buildsystem: simple
sources:
- type: file
path: dk.philipk.BoilR.desktop
build-commands:
- install -Dm644 dk.philipk.BoilR.desktop -t /app/share/applications/
- name: boilr-appinfo
buildsystem: simple
sources:
- type: file
path: dk.philipk.BoilR.appdata.xml
build-commands:
- install -Dm644 dk.philipk.BoilR.appdata.xml -t /app/share/metainfo/