Update flatpak manifest

Specify OPENSPADES_RESDIR for non-free paks (extra-data) instead of
using OPENSPADES_INSTALL_RESOURCES

Move installation of apply_extra script to post-install script. Doing
it in build-commands is unnecessary
This commit is contained in:
Kent Delante 2019-02-16 12:35:28 +08:00
parent 40edc756c1
commit 581ed7c822

View File

@ -59,19 +59,17 @@
{
"name": "openspades",
"buildsystem": "cmake",
"build-commands": [
"install -D apply_extra /app/bin/apply_extra"
],
"config-opts": [
"-DOPENSPADES_INSTALL_BINARY=bin",
"-DOPENSPADES_INSTALL_RESOURCES=share/openspades/Resources/",
"-DOPENSPADES_RESDIR=/app/extra/Resources/",
"-DCMAKE_CXX_FLAGS=-DGLEW_NO_GLU",
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
],
"post-install": [
"mv /app/share/applications/openspades.desktop /app/share/applications/jp.yvt.OpenSpades.desktop",
"mkdir -p /app/share/appdata/",
"install -Dm0644 jp.yvt.OpenSpades.appdata.xml /app/share/appdata/jp.yvt.OpenSpades.appdata.xml"
"install -Dm0644 jp.yvt.OpenSpades.appdata.xml /app/share/appdata/jp.yvt.OpenSpades.appdata.xml",
"install -D apply_extra /app/bin/apply_extra"
],
"sources": [
{
@ -79,10 +77,11 @@
"dest-filename": "apply_extra",
"commands": [
"unzip -q nonfree-paks.zip",
"mv Nonfree/* /app/share/openspades/Resources",
"mv OfficialMods/* /app/share/openspades/Resources",
"rm nonfree-paks.zip",
"rm -r Nonfree OfficialMods"
"mkdir Resources",
"mv Nonfree/* ./Resources",
"mv OfficialMods/* ./Resources",
"rmdir Nonfree OfficialMods"
]
},
{