-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathio.github.nearinfinitybrowser.nearinfinity.yml
82 lines (78 loc) · 3.93 KB
/
io.github.nearinfinitybrowser.nearinfinity.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
app-id: io.github.nearinfinitybrowser.nearinfinity
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk21
command: nearinfinity
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --socket=cups
# Required to access game folders outside of $HOME
- --filesystem=host
# Required to make game assets temporarily available to associated applications (e.g. video files)
- --filesystem=/tmp
- --env=PATH=/usr/bin:/app/bin:/app/jre/bin
- --env=JAVA_HOME=/app/jre
modules:
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk21/install.sh
- name: nearinfinity
buildsystem: simple
build-commands:
- install -Dm755 nearinfinity "${FLATPAK_DEST}/bin/nearinfinity"
- install -Dm644 NearInfinity.jar "${FLATPAK_DEST}/share/NearInfinity.jar"
- install -Dm644 "${FLATPAK_ID}.metainfo.xml" "${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
- install -Dm644 "${FLATPAK_ID}.desktop" "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
- install -Dm644 App256.png "${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png"
- install -Dm644 "${FLATPAK_ID}-key.xml" "${FLATPAK_DEST}/share/mime/packages/${FLATPAK_ID}-key.xml"
- |
for dim in 16 22 32 64 128 256; do
install -Dm644 "key-${dim}.png" "${FLATPAK_DEST}/share/icons/hicolor/${dim}x${dim}/mimetypes/${FLATPAK_ID}-key.png"
done
sources:
- type: script
dest-filename: nearinfinity
commands:
- exec java -jar /app/share/NearInfinity.jar -no-update -no-launch-game
"$@"
- type: file
path: io.github.nearinfinitybrowser.nearinfinity.desktop
- type: file
path: io.github.nearinfinitybrowser.nearinfinity-key.xml
- type: file
url: https://raw.githubusercontent.com/NearInfinityBrowser/NearInfinity-assets/master/icons/linux/key-16.png
sha256: 8634c07f30ad18c133b31e8233b7c0e43f2c38460312c45c2b85f3b21bd93530
- type: file
url: https://raw.githubusercontent.com/NearInfinityBrowser/NearInfinity-assets/master/icons/linux/key-22.png
sha256: 0e39779036bb2b346591942ff6039d93bc88a26452a3fee31e26de134f51a12f
- type: file
url: https://raw.githubusercontent.com/NearInfinityBrowser/NearInfinity-assets/master/icons/linux/key-32.png
sha256: e671d0df8b315c3db9cccbec00193f9d4864707133c5795f4ca66dab503a46cd
- type: file
url: https://raw.githubusercontent.com/NearInfinityBrowser/NearInfinity-assets/master/icons/linux/key-64.png
sha256: 86108fb0270ec09e32aefb0a5d874f2239f3c3b1577dd2fe1d538268119c1769
- type: file
url: https://raw.githubusercontent.com/NearInfinityBrowser/NearInfinity-assets/master/icons/linux/key-128.png
sha256: e1fbb625e2124a9336c8a759c30d0e48b15777c6fc927d3636c8dbbe64eb0ebb
- type: file
url: https://raw.githubusercontent.com/NearInfinityBrowser/NearInfinity-assets/master/icons/linux/key-256.png
sha256: 82e84ea271b7af88f4f6be35ff28d1350972ab207199736d8e29da317c40c2b5
- type: file
url: https://github.com/NearInfinityBrowser/NearInfinity/raw/master/src/org/infinity/icon/App256.png
sha256: 6cedf31382cd00c6b8aa2dae73069f1b569490f463cbaad4823094d535ef19bc
- type: file
path: io.github.nearinfinitybrowser.nearinfinity.metainfo.xml
- type: archive
url: https://github.com/Argent77/NearInfinity/releases/download/v2.4-20241204/NearInfinity-20241204.zip
sha256: 46f345c6c546aef8b17441b82282d800d0fc93819fcbe734d704af81fa86d2cc
x-checker-data:
type: json
url: https://api.github.com/repos/Argent77/NearInfinity/releases/latest
version-query: .tag_name
url-query: .assets[] | select(.name | match("^NearInfinity(-v?\\d+(\\.\\d+)*)?(-\\d+(-.+)?)?\\.zip$";
"i")) | .browser_download_url