-
Notifications
You must be signed in to change notification settings - Fork 1
/
com.github.mtkennerly.ludusavi.yaml
59 lines (59 loc) · 2.19 KB
/
com.github.mtkennerly.ludusavi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
app-id: com.github.mtkennerly.ludusavi
runtime: org.freedesktop.Platform
runtime-version: "23.08"
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
- org.freedesktop.Sdk.Extension.llvm16
build-options:
append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm16/bin
env:
CARGO_HOME: /run/build/ludusavi/cargo
finish-args:
- --socket=x11
- --socket=wayland
- --share=network
- --share=ipc
## Needed for custom paths and restoring saves
- --filesystem=home
- --filesystem=/run/media/
- --filesystem=/media/
### Necessary for built-in integration with other apps
- --filesystem=~/.var/app/com.valvesoftware.Steam
- --filesystem=~/.var/app/com.heroicgameslauncher.hgl
- --filesystem=~/.var/app/net.lutris.Lutris
### Aside from those apps that Ludusavi automatically supports,
### users commonly want to back up data from other apps as well.
- --filesystem=~/.var/app/
## GPU acceleration
- --device=dri
## Fix for GUI being too large on the steam deck
- --env=WINIT_X11_SCALE_FACTOR=1
command: ludusavi
modules:
- name: ludusavi
buildsystem: simple
build-options:
env:
APPNAME: ludusavi
build-commands:
- cargo --offline fetch --verbose
- cargo build --offline --release
- install -D target/release/ludusavi /app/bin/ludusavi
post-install:
- install -Dm644 assets/icon.png /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.png
- install -Dm644 assets/icon.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
- install -Dm644 assets/${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm644 assets/${APPNAME}.desktop /app/share/applications/${FLATPAK_ID}.desktop
- desktop-file-edit --set-icon=${FLATPAK_ID} /app/share/applications/${FLATPAK_ID}.desktop
sources:
- type: git
url: https://github.com/mtkennerly/ludusavi
tag: v0.26.0
# x-checker-data:
# type: json
# url: https://api.github.com/repos/mtkennerly/ludusavi/latest
# version-query: .tag_name
# tag-query: .assets[] | select(.name==$version)
# | .tag_name
- generated-sources.json