-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathus.acei.AbsoluteInfinity.yaml
More file actions
61 lines (56 loc) · 2.16 KB
/
Copy pathus.acei.AbsoluteInfinity.yaml
File metadata and controls
61 lines (56 loc) · 2.16 KB
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
# Tweaked from https://docs.flatpak.org/en/latest/dotnet.html
id: us.acei.AbsoluteInfinity
runtime: org.freedesktop.Platform
runtime-version: '25.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.dotnet8
build-options:
prepend-path: "/usr/lib/sdk/dotnet8/bin"
append-ld-library-path: "/usr/lib/sdk/dotnet8/lib"
prepend-pkg-config-path: "/usr/lib/sdk/dotnet8/lib/pkgconfig"
command: AbsoluteInfinity
finish-args:
- --device=dri
- --socket=fallback-x11
- --socket=wayland
- --socket=pulseaudio
- --share=ipc
- --env=DOTNET_ROOT=/app/lib/dotnet
modules:
- name: dotnet
buildsystem: simple
build-commands:
- /usr/lib/sdk/dotnet8/bin/install.sh
- name: AbsoluteInfinity
buildsystem: simple
sources:
- type: archive
url: https://gitlab.com/acei.us/games/project4/game/-/archive/v0.7.0.1/game-v0.7.0.1.zip
sha256: 5749b6a8a031e1ffd8e500bf6b4331c83b9488495c83e5900272b26c13a550ba
# Generated with https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/dotnet/flatpak-dotnet-generator.py
- ./nuget-sources.json
build-options:
arch:
aarch64:
env:
RID: "linux-arm64"
x86_64:
env:
RID: "linux-x64"
env:
DOTNET_CLI_TELEMETRY_OPTOUT: "1"
build-commands:
# Build
- dotnet clean
- dotnet publish AbsoluteInfinity/AbsoluteInfinity.csproj -c Release -p:DefineConstants="FLATPAK" --no-self-contained --source ./nuget-sources -r $RID
- mkdir -p ${FLATPAK_DEST}/bin
- cp -r AbsoluteInfinity/bin/Release/net8.0/$RID/publish/* ${FLATPAK_DEST}/bin/
# Install Other Stuff
- install -Dm644 Package/us.acei.AbsoluteInfinity.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/
- install -Dm644 Package/icon-256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/us.acei.AbsoluteInfinity.png
- install -Dm644 Package/icon-128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/us.acei.AbsoluteInfinity.png
- install -Dm644 Package/flatpak.desktop ${FLATPAK_DEST}/share/applications/us.acei.AbsoluteInfinity.desktop
cleanup:
- /bin/*.pdb
- /bin/*.xml