build: workaround for broken cleanup of flatpak.

For some reason, the "cleanup" tag won't delete the files produced by
the BaseApp inside the main GIMP manifest (I still need them for build,
but want to delete them for runtime).
This is a workaround to delete them with a few command lines for now.
See: https://github.com/flatpak/flatpak/issues/1082
This commit is contained in:
Jehan 2017-10-06 16:40:26 +02:00
parent 80a526861f
commit 789cb3ce6e
2 changed files with 16 additions and 0 deletions

View File

@ -63,6 +63,14 @@
"branch": "GIMP_2_9_6",
"commit": "5afea2f6d3ce5160362df930883d62fb9e0728c6"
}
],
"post-install": [
"rm -fr /app/include /app/lib/pkgconfig /app/share/pkgconfig",
"rm -fr /app/share/gtk-doc/ /app/share/man/",
"rm -fr /app/lib/*.la /app/lib/*.a",
"rm -fr /app/share/ghostscript/9.20/doc/",
"rm -fr /app/bin/wmf* /app/bin/libwmf-*",
"rm -fr /app/bin/pygtk* /app/bin/pygobject* /app/bin/pygobject-codegen-2.0"
]
}
]

View File

@ -72,6 +72,14 @@
"url": "git://git.gnome.org/gimp",
"branch": "master"
}
],
"post-install": [
"rm -fr /app/include /app/lib/pkgconfig /app/share/pkgconfig",
"rm -fr /app/share/gtk-doc/ /app/share/man/",
"rm -fr /app/lib/*.la /app/lib/*.a",
"rm -fr /app/share/ghostscript/9.20/doc/",
"rm -fr /app/bin/wmf* /app/bin/libwmf-*",
"rm -fr /app/bin/pygtk* /app/bin/pygobject* /app/bin/pygobject-codegen-2.0"
]
}
]