mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-21 03:04:02 -04:00

I have chosen to use JSON and move the script into a file so it is possible to use GNOME Builder to test/run. The reason for the gitignore change is so the ClassiCubeLauncher file is not ignored. Also, ClassiCube using SDL3 launches on GNOME now.
34 lines
1.5 KiB
JSON
34 lines
1.5 KiB
JSON
{
|
|
"id": "net.classicube.flatpak.client",
|
|
"runtime": "org.freedesktop.Platform",
|
|
"runtime-version": "23.08",
|
|
"sdk": "org.freedesktop.Sdk",
|
|
"command": "ClassiCubeLauncher",
|
|
"finish-args": [
|
|
"--socket=x11",
|
|
"--device=dri",
|
|
"--share=network",
|
|
"--share=ipc",
|
|
"--socket=pulseaudio"
|
|
],
|
|
"modules": [
|
|
{
|
|
"name": "ClassiCube",
|
|
"buildsystem": "simple",
|
|
"build-commands": [
|
|
"gcc -fno-math-errno src/*.c -o src/ClassiCube -O1 -DCC_BUILD_FLATPAK -DCC_GFX_BACKEND=CC_GFX_BACKEND_GL2 -rdynamic -lm -lpthread -lX11 -lXi -lGL -ldl",
|
|
"install -Dm755 src/ClassiCube -t ${FLATPAK_DEST}/bin",
|
|
"install -Dm755 misc/linux/flatpak/ClassiCubeLauncher -t ${FLATPAK_DEST}/bin",
|
|
"install -Dm644 misc/linux/flatpak/net.classicube.flatpak.client.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/net.classicube.flatpak.client.svg",
|
|
"install -Dm644 misc/linux/flatpak/net.classicube.flatpak.client.desktop ${FLATPAK_DEST}/share/applications/net.classicube.flatpak.client.desktop",
|
|
"install -Dm644 misc/linux/flatpak/net.classicube.flatpak.client.metainfo.xml ${FLATPAK_DEST}/share/metainfo/net.classicube.flatpak.client.metainfo.xml"
|
|
],
|
|
"sources": [
|
|
{
|
|
"type": "git",
|
|
"url": "https://github.com/ClassiCube/ClassiCube.git"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |