mirror of https://github.com/stenzek/duckstation
Build: Unify Flatpak manifests
parent
28c13c0ac4
commit
90d0029c34
@ -1,5 +1,5 @@
|
|||||||
.flatpak-builder/
|
.flatpak-builder/
|
||||||
build/
|
build/
|
||||||
repo/
|
repo/
|
||||||
org.duckstation.duckstation.metainfo.xml
|
org.duckstation.DuckStation.metainfo.xml
|
||||||
*.flatpak
|
*.flatpak
|
||||||
|
|||||||
@ -1,69 +0,0 @@
|
|||||||
{
|
|
||||||
"app-id": "org.duckstation.duckstation",
|
|
||||||
"runtime": "org.kde.Platform",
|
|
||||||
"runtime-version": "6.5",
|
|
||||||
"sdk": "org.kde.Sdk",
|
|
||||||
"sdk-extensions": [
|
|
||||||
"org.freedesktop.Sdk.Extension.llvm16"
|
|
||||||
],
|
|
||||||
"command": "duckstation-qt",
|
|
||||||
"finish-args": [
|
|
||||||
"--device=all",
|
|
||||||
"--allow=bluetooth",
|
|
||||||
"--share=network",
|
|
||||||
"--share=ipc",
|
|
||||||
"--socket=fallback-x11",
|
|
||||||
"--socket=wayland",
|
|
||||||
"--socket=pulseaudio",
|
|
||||||
"--talk-name=org.freedesktop.ScreenSaver"
|
|
||||||
],
|
|
||||||
"modules": [
|
|
||||||
"modules/20-sdl2.json",
|
|
||||||
"modules/21-libbacktrace.json",
|
|
||||||
{
|
|
||||||
"name": "duckstation",
|
|
||||||
"buildsystem": "cmake",
|
|
||||||
"build-options": {
|
|
||||||
"strip": false,
|
|
||||||
"no-debuginfo": true,
|
|
||||||
"config-opts": [
|
|
||||||
"-DCMAKE_BUILD_TYPE=Release",
|
|
||||||
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON",
|
|
||||||
"-DBUILD_NOGUI_FRONTEND=OFF",
|
|
||||||
"-DBUILD_QT_FRONTEND=ON",
|
|
||||||
"-DBUILD_TESTS=OFF",
|
|
||||||
"-DCMAKE_C_COMPILER=/usr/lib/sdk/llvm16/bin/clang",
|
|
||||||
"-DCMAKE_CXX_COMPILER=/usr/lib/sdk/llvm16/bin/clang++",
|
|
||||||
"-DCMAKE_EXE_LINKER_FLAGS_INIT=-fuse-ld=lld",
|
|
||||||
"-DCMAKE_MODULE_LINKER_FLAGS_INIT=-fuse-ld=lld",
|
|
||||||
"-DCMAKE_SHARED_LINKER_FLAGS_INIT=-fuse-ld=lld",
|
|
||||||
"-DDISABLE_GEN_SCM_VERSION=ON"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"sources": [
|
|
||||||
{
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/stenzek/duckstation.git",
|
|
||||||
"branch": "master",
|
|
||||||
"commit": "@GIT_HASH@"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "file",
|
|
||||||
"path": "org.duckstation.duckstation.metainfo.xml"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "file",
|
|
||||||
"path": "scmversion.cpp",
|
|
||||||
"dest": "src/scmversion"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"post-install": [
|
|
||||||
"cp -a \"${FLATPAK_BUILDER_BUILDDIR}/bin\" ${FLATPAK_DEST}",
|
|
||||||
"install -Dm644 scripts/duckstation-qt.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/org.duckstation.duckstation.png",
|
|
||||||
"install -Dm644 scripts/duckstation-qt.desktop ${FLATPAK_DEST}/share/applications/org.duckstation.duckstation.desktop",
|
|
||||||
"desktop-file-edit --set-key=Icon --set-value=org.duckstation.duckstation ${FLATPAK_DEST}/share/applications/org.duckstation.duckstation.desktop",
|
|
||||||
"install -Dm644 org.duckstation.duckstation.metainfo.xml ${FLATPAK_DEST}/share/metainfo/org.duckstation.duckstation.metainfo.xml"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
Loading…
Reference in New Issue