-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.exok.Celeste64.yml
55 lines (52 loc) · 1.88 KB
/
com.exok.Celeste64.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
id: com.exok.Celeste64
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.dotnet8
build-options:
arch:
x86_64:
env:
RUNTIME: "linux-x64"
# support for aarm64 will be added in the future
# aarch64:
# env:
# RUNTIME: "linux-arm64"
prepend-pkg-config-path: "/usr/lib/sdk/dotnet8/lib/pkgconfig"
append-path: "/usr/lib/sdk/dotnet8/bin"
append-ld-library-path: "/usr/lib/sdk/dotnet8/lib"
command: celeste64
finish-args:
- --device=all
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
- --share=ipc
- --socket=pulseaudio
- --socket=x11
modules:
- name: celeste64
buildsystem: simple
only-arches:
- "x86_64"
# - "aarm64" # support for aarm64 will be added in the future
build-commands:
- "install-sdk.sh"
- "dotnet publish -c Release --runtime $RUNTIME --source ./nuget-sources Celeste64.csproj"
- "cp -r --remove-destination /run/build/celeste64/bin/Release/net8.0/$RUNTIME/publish/ /app/${FLATPAK_ID}"
- "cp -r --remove-destination /run/build/celeste64/Content/ /app/${FLATPAK_ID}/Content"
- "ln -s /app/${FLATPAK_ID}/Celeste64 /app/bin/celeste64"
- 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 ${FLATPAK_ID}.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
sources:
- type: "git"
url: "https://github.com/ExOK/Celeste64.git"
tag: "v1.1.1"
- "./sources.json"
- "./platform-sources.json"
- type: file
path: com.exok.Celeste64.metainfo.xml
- type: file
path: com.exok.Celeste64.desktop
- type: file
path: com.exok.Celeste64.png