|
| 1 | +{ |
| 2 | + "id": "io.github.hedge_dev.unleashedrecomp", |
| 3 | + "runtime": "org.freedesktop.Platform", |
| 4 | + "runtime-version": "24.08", |
| 5 | + "sdk": "org.freedesktop.Sdk", |
| 6 | + "sdk-extensions" : [ "org.freedesktop.Sdk.Extension.llvm18" ], |
| 7 | + "finish-args": [ |
| 8 | + "--share=network", |
| 9 | + "--socket=wayland", |
| 10 | + "--socket=fallback-x11", |
| 11 | + "--socket=pulseaudio", |
| 12 | + "--device=all", |
| 13 | + "--filesystem=host", |
| 14 | + "--filesystem=/media", |
| 15 | + "--filesystem=/run/media", |
| 16 | + "--filesystem=/mnt" |
| 17 | + ], |
| 18 | + "modules": [ |
| 19 | + { |
| 20 | + "name": "UnleashedRecomp", |
| 21 | + "buildsystem": "simple", |
| 22 | + "build-commands": [ |
| 23 | + "cmake --preset linux-debug -DUNLEASHED_RECOMP_FLATPAK=ON -DSDL2MIXER_VORBIS=VORBISFILE -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache", |
| 24 | + "cmake --build out/build/linux-debug --target UnleashedRecomp", |
| 25 | + "mkdir -p /app/bin", |
| 26 | + "cp out/build/linux-debug/UnleashedRecomp/UnleashedRecomp /app/bin/UnleashedRecomp", |
| 27 | + "install -Dm644 UnleashedRecompResources/images/game_icon.png /app/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png", |
| 28 | + "install -Dm644 flatpak/io.github.hedge_dev.unleashedrecomp.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml", |
| 29 | + "install -Dm644 flatpak/io.github.hedge_dev.unleashedrecomp.desktop /app/share/applications/${FLATPAK_ID}.desktop" |
| 30 | + ], |
| 31 | + "sources": [ |
| 32 | + { |
| 33 | + "type": "dir", |
| 34 | + "path": "../" |
| 35 | + } |
| 36 | + ], |
| 37 | + "build-options": { |
| 38 | + "no-debuginfo": true, |
| 39 | + "strip": false, |
| 40 | + "append-path": "/usr/lib/sdk/llvm18/bin", |
| 41 | + "prepend-ld-library-path": "/usr/lib/sdk/llvm18/lib", |
| 42 | + "build-args": [ |
| 43 | + "--share=network" |
| 44 | + ] |
| 45 | + } |
| 46 | + } |
| 47 | + ] |
| 48 | +} |
0 commit comments