Meta: Clean up flatpak manifest and remove most linter warnings
Some checks are pending
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Build Dev Container Image / build (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run

We now clean up installed helper tools, includes from dependencies, and
pkgconfig/CMake files. This decreases the size of the flatpak from
~206MiB to ~150 MiB on my machine.

The manifest is also mostly clean of linter warnings from the
flatpack-builder manifest linter, with the exception of the overly broad
session bus policy.

The docs at https://docs.flathub.org/docs/for-app-authors/linter list a
method for selecting the correct session bus policies, but it is unclear
how to actually get the full set.
This commit is contained in:
Andrew Kaster 2025-07-11 13:06:08 -06:00 committed by Andrew Kaster
commit c1ece2b4ed
Notes: github-actions[bot] 2025-07-15 20:18:08 +00:00

View file

@ -13,6 +13,17 @@
"--socket=pulseaudio",
"--socket=session-bus"
],
"cleanup": [
"/sbin",
"*.a",
"/lib/cmake",
"/lib/pkgconfig",
"/include",
"/share/aclocal",
"/share/cmake",
"/share/doc",
"/share/man"
],
"modules": [
{
"name": "simdutf",
@ -66,6 +77,9 @@
"-DSKIP_INSTALL_EXECUTABLES=ON",
"-DSKIP_INSTALL_FILES=OFF",
"-DSKIP_INSTALL_PROGRAMS=ON"
],
"cleanup": [
"/bin"
]
},
{
@ -123,6 +137,12 @@
"--disable-debug",
"--enable-release",
"--enable-shared"
],
"cleanup": [
"/bin",
"/lib/icu",
"/lib/libicutu.so*",
"/share/icu"
]
},
{
@ -168,11 +188,14 @@
"-DLIBXML2_WITH_ICU=ON",
"-DLIBXML2_WITH_LZMA=ON",
"-DLIBXML2_WITH_ZLIB=ON"
],
"cleanup": [
"/bin"
]
},
{
"name": "vulkan-memory-allocator",
"buildsystem": "cmake",
"buildsystem": "cmake-ninja",
"sources": [
{
"type": "git",
@ -202,7 +225,8 @@
],
"build-commands": [
"./gn-whole-enchilada.sh"
]
],
"cleanup": [ "*" ]
},
{
"name": "brotli",
@ -220,6 +244,9 @@
"-DCMAKE_INSTALL_LIBDIR=lib",
"-DBROTLI_DISABLE_TESTS=ON",
"-DBROTLI_BUILD_TOOLS=OFF"
],
"cleanup": [
"/bin"
]
},
{
@ -274,7 +301,7 @@
"-DCMAKE_PREFIX_PATH=/app"
],
"cleanup": [
"/app/bin"
"/bin"
]
},
{
@ -323,6 +350,9 @@
"-DWEBP_BUILD_DWEBP=OFF",
"-DWEBP_BUILD_WEBPMUX=OFF",
"-DWEBP_BUILD_EXTRAS=OFF"
],
"cleanup": [
"/share/WebP"
]
},
{
@ -476,6 +506,8 @@
"-DCMAKE_BUILD_TYPE=Release",
"-DENABLE_LTO_FOR_RELEASE=OFF",
"-DENABLE_INSTALL_FREEDESKTOP_FILES=ON",
"-DENABLE_INSTALL_HEADERS=OFF",
"-DBUILD_TESTING=OFF",
"-DICU_ROOT=/app"
]
}