-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.github.shadowmario.fnf-psychengine.yml
92 lines (88 loc) · 3.56 KB
/
io.github.shadowmario.fnf-psychengine.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
83
84
85
86
87
88
89
90
91
92
app-id: io.github.shadowmario.fnf-psychengine
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: io.github.shadowmario.fnf-psychengine.sh
finish-args:
# gamepad support
- --device=all
# X11 + XShm access
- --share=ipc
- --socket=x11
# Audio
- --socket=pulseaudio
modules:
- name: fnf-psychengine
modules:
- name: gamemode
buildsystem: meson
config-opts:
- -Dwith-sd-bus-provider=no-daemon
- -Dwith-examples=false
sources:
- type: git
url: https://github.com/FeralInteractive/gamemode
tag: 1.8.1
x-checker-data:
type: git
tag-pattern: ^([\\d.]+)$
sources:
- type: archive
url: https://github.com/HaxeFoundation/neko/releases/download/v2-3-0/neko-2.3.0-linux64.tar.gz
sha256: 26dda28d0a51407f26218ba9c2c355c8eb23cf2b0b617274b00e4b9170fe69eb
dest: haxe/
x-checker-data:
type: anitya
project-id: 10885
url-template: https://github.com/HaxeFoundation/neko/releases/download/v$version/neko-$version-linux64.tar.gz
- type: archive
url: https://github.com/HaxeFoundation/haxe/releases/download/4.3.6/haxe-4.3.6-linux64.tar.gz
sha256: 810e1752c8eb3065dbff54c050b20a712ce276f407741f0bf94696b454a597ad
dest: haxe/
x-checker-data:
type: anitya
project-id: 7883
url-template: https://github.com/HaxeFoundation/haxe/releases/download/$version/haxe-$version-linux64.tar.gz
# Haxe packages used by PsychEngine
- psychengine-haxelib-dependencies.yml
# Main PsychEngine repo
- type: git
url: https://github.com/ShadowMario/FNF-PsychEngine.git
# tag: "0.7.3"
commit: d64912e57120e27dc41304deae48097b6c1355d1
x-checker-data:
type: git
tag-pattern: ^([\\d.]+)$
# temporary fix for broken build in the repo (https://github.com/ShadowMario/FNF-PsychEngine/pull/14170)
- type: patch
path: fnf-psychengine-fixbuild.patch
# redirect crash logs, mods directory and list to XDG_DATA_HOME
- type: patch
path: fnf-psychengine-fix_user_data.patch
# launcher script
- type: script
dest-filename: io.github.shadowmario.fnf-psychengine.sh
commands:
# Create mods directory if it doesn't exist yet
- if [[ ! -d $XDG_DATA_HOME/mods ]]; then mkdir $XDG_DATA_HOME/mods; fi
# launch game
- cd /app/bin
- ./PsychEngine
builddir: true
buildsystem: simple
build-commands:
# build
- |
export PATH=$PATH:$(pwd)/haxe
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/haxe
haxelib setup ./setup
for filename in psychengine-deps/*; do haxelib install $filename && rm $filename; done
./haxe/haxelib run lime build Project.xml linux
mkdir -p /app/bin && cp -r export/release/linux/bin/* /app/bin/
# Install launchers
- |
install -m755 io.github.shadowmario.fnf-psychengine.sh -t /app/bin/
desktop-file-edit --set-key=Exec --set-value=io.github.shadowmario.fnf-psychengine.sh assets/meta/io.github.shadowmario.fnf-psychengine.desktop
install -Dm 644 assets/meta/io.github.shadowmario.fnf-psychengine.desktop -t /app/share/applications
install -Dm 644 assets/meta/io.github.shadowmario.fnf-psychengine.png -t /app/share/icons/hicolor/512x512/apps
install -Dm 644 assets/meta/io.github.shadowmario.fnf-psychengine.metainfo.xml -t /app/share/metainfo