-
Notifications
You must be signed in to change notification settings - Fork 1
/
io.github.theforceengine.tfe.yml
57 lines (55 loc) · 2.22 KB
/
io.github.theforceengine.tfe.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
app-id: io.github.theforceengine.tfe
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: io.github.theforceengine.tfe.sh
finish-args:
# hardware 3D and controller access
- --device=all
# X11 + XShm access
- --share=ipc
- --socket=x11
# Audio
- --socket=pulseaudio
# Access to the default Steam Dark Forces data directory for loose, Flatpak and Snap versions of Steam
- --filesystem=home/.local/share/Steam/steamapps/common/Dark Forces/Game:ro
- --filesystem=home/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Dark
Forces/Game:ro
- --filesystem=home/snap/steam/common/.local/share/Steam/steamapps/common/Dark Forces/Game:ro
modules:
- name: tfe
modules:
- shared-modules/glu/glu-9.json
- shared-modules/glew/glew.json
sources:
- type: git
url: https://github.com/luciusDXL/TheForceEngine.git
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
# temporarily pin to a commit using the new external release info so flathub release info is correct
commit: 6c07cc07e48454c407d17fc0820c457cdfe35abd
# Separate engine data from user data on Linux by setting PATH_USER_DOCUMENTS to XDG_HOME.
tag: v1.10.000
- type: patch
path: tfe_01_user_data.patch
# Patch automatic detection of Dark Forces installation to only check default Steam path
- type: patch
path: tfe_02_game_data_detection.patch
# Add a wrapper script that points TFE_DATA_HOME to the correct location within the sandbox
- type: file
path: io.github.theforceengine.tfe.sh
# Release metadata
- type: file
path: io.github.theforceengine.tfe.releases.xml
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
- -DDISABLE_SYSMIDI=ON
builddir: true
build-commands:
- |
set -e
install -Dm 0755 '../io.github.theforceengine.tfe.sh' -t '/app/bin'
install -Dm 0755 '../io.github.theforceengine.tfe.releases.xml' -t '/app/share/metainfo/releases/'
desktop-file-edit --set-key=Exec --set-value='io.github.theforceengine.tfe.sh' '../TheForceEngine/io.github.theforceengine.tfe.desktop'