-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcom.spacestation14.Launcher.yaml
80 lines (73 loc) · 3.01 KB
/
com.spacestation14.Launcher.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
app-id: com.spacestation14.Launcher
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.dotnet9
build-options:
prepend-path: "/usr/lib/sdk/dotnet9/bin"
append-ld-library-path: "/usr/lib/sdk/dotnet9/lib"
env:
PKG_CONFIG_PATH: "/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/sdk/dotnet9/lib/pkgconfig"
command: SS14.Launcher
finish-args:
- --device=dri
# Allow all-device access for MIDI device support
- --device=all
- --share=ipc
- --share=network
- --socket=pulseaudio
# TODO: Replace this with wayland and fallback-x11 once Wayland support
# becomes available:
# <https://github.com/AvaloniaUI/Avalonia/pull/8003>
# <https://github.com/space-wizards/RobustToolbox/issues/2468>
- --socket=x11
# Allow access to the Music directory for MIDI files
- --filesystem=xdg-music
- --env=DOTNET_ROOT=/app/lib/dotnet
modules:
- name: dotnet
buildsystem: simple
build-commands:
- /usr/lib/sdk/dotnet9/bin/install.sh
- shared-modules/linux-audio/fluidsynth2.json
- name: space-station-14-launcher
buildsystem: simple
sources:
- type: git
url: https://github.com/space-wizards/SS14.Launcher.git
tag: v0.30.0
- sources/space-station-14-launcher-nuget-sources.json
- sources/space-station-14-loader-nuget-sources.json
build-commands:
- dotnet publish SS14.Launcher/SS14.Launcher.csproj /p:FullRelease=True -c Release --no-self-contained --source ./nuget-sources
- dotnet publish SS14.Loader/SS14.Loader.csproj -c Release --no-self-contained --source ./nuget-sources
- mkdir -p ${FLATPAK_DEST}/bin
- cp -r ${FLATPAK_BUILDER_BUILDDIR}/SS14.Launcher/bin/Release/net9.0/publish/* ${FLATPAK_DEST}/bin
- mkdir -p ${FLATPAK_DEST}/bin/loader
- cp -r ${FLATPAK_BUILDER_BUILDDIR}/SS14.Loader/bin/Release/net9.0/publish/* ${FLATPAK_DEST}/bin/loader
# The SS14.Launcher project does not include an SVG icon file, but one is
# available in the asset-dump repository.
- name: icon-file
buildsystem: simple
sources:
- type: git
url: https://github.com/space-wizards/asset-dump.git
commit: 5ffb49a2f4f3e6805a0b7bef31247eedebfe1043
build-commands:
- install -Dm644 -T icon-new.svg /app/share/icons/hicolor/scalable/apps/com.spacestation14.Launcher.svg
- name: extra-data
buildsystem: simple
sources:
# The upstream project does not include a desktop file. Instead, we
# write one from scratch.
- type: file
path: data/com.spacestation14.Launcher.desktop
# The upstream project does not include an appdata.xml file. Instead, we
# write one from scratch.
- type: file
path: data/com.spacestation14.Launcher.appdata.xml
build-commands:
- install -Dm644 com.spacestation14.Launcher.desktop -t /app/share/applications
- install -Dm644 com.spacestation14.Launcher.appdata.xml -t /app/share/appdata