-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathro.go.hmlendea.SokoGrump.yaml
63 lines (61 loc) · 2.87 KB
/
ro.go.hmlendea.SokoGrump.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
60
61
62
63
app-id: ro.go.hmlendea.SokoGrump
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
separate-locales: false
command: sokogrump
finish-args:
- --share=ipc
- --device=dri
- --socket=x11
modules:
- name: sokogrump
buildsystem: simple
build-commands:
- unzip -d "sokogrump" "sokogrump.zip"
- cp -r "sokogrump" /app
- install -Dm 644 "icon.png" "${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png"
- install -Dm 644 "${FLATPAK_ID}.desktop" "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
- install -Dm 644 "${FLATPAK_ID}.metainfo.xml" "${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
- install -Dm 755 "sokogrump.sh" "/app/bin/sokogrump"
- desktop-file-edit "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
--set-key "Exec" --set-value "sokogrump" --set-key "Icon" --set-value "${FLATPAK_ID}"
sources:
- type: file
only-arches: [aarch64]
url: https://github.com/hmlendea/sokogrump/releases/download/v2.5.0/sokogrump_2.5.0_linux-arm64.zip
dest-filename: sokogrump.zip
sha256: 1c941920e952a1e25b5eb2b3a29af30579a97e44ee03724b5f2ac8c9d3b1ffff
x-checker-data:
type: json
url: https://api.github.com/repos/hmlendea/sokogrump/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: .assets[] | select(.name=="sokogrump_" + $version + "_linux-arm64.zip")
| .browser_download_url
- type: file
only-arches: [x86_64]
url: https://github.com/hmlendea/sokogrump/releases/download/v2.5.0/sokogrump_2.5.0_linux-x64.zip
dest-filename: sokogrump.zip
sha256: 44e321e335a8d1ce19c44708fabd12e94adc9ca70a8dd030407373c19c6cc6af
x-checker-data:
type: json
url: https://api.github.com/repos/hmlendea/sokogrump/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: .assets[] | select(.name=="sokogrump_" + $version + "_linux-x64.zip")
| .browser_download_url
- type: file
path: ro.go.hmlendea.SokoGrump.metainfo.xml
- type: file
url: https://raw.githubusercontent.com/hmlendea/sokogrump/80abe82e7a30dffe8f8dca8ee6357325f4ee24bf/icon.png
dest-filename: icon.png
sha256: 35137309694e9cc07407f50cbffc958293be3802ed417671a7a70e9d69e7ab33
- type: file
url: https://raw.githubusercontent.com/hmlendea/sokogrump/f5f2965bdba2e588a60f391b64725f0ea0ce87d1/ro.go.hmlendea.SokoGrump.desktop
dest-filename: ro.go.hmlendea.SokoGrump.desktop
sha256: 4152b79191427c0f81fc2757bf669cd50275587d30bfed87c5961cede4c80a88
- type: script
dest-filename: sokogrump.sh
commands:
- export TMPDIR="${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}"
- cd /app/sokogrump
- exec /app/sokogrump/SokoGrump "$@"