Custom flatpak packaging for QGIS, (QT6+Parquet)
Forked from https://github.com/flathub/org.qgis.qgis with QT6 & Parquet additions
Grab a release from https://github.com/linz/qgis-flatpak/releases
flatpak install --user linz_qgis-beb3eecf7d44_build-16.flatpak
flatpak run nz.govt.linz.qgis;flatpak-builder \
--force-clean \
--state-dir=.flatpak-state \
--disable-updates \
--ccache \
--user \
--sandbox \
--install ./build \
--repo=linz \
--install-deps-from=flathub \
nz.govt.linz.qgis.jsonBundle into flatpak
QGIS_COMMIT=$(cat nz.govt.linz.qgis.json | jq '.modules[0].sources[0].commit' -r)
flatpak build-bundle \
--runtime-repo=https://flathub.org/repo/flathub.flatpakrepo \
linz \
qgis-linz_${QGIS_COMMIT}.flatpak \
nz.govt.linz.qgisset a larger cache
ccache --max-size 100GSet a shared cache location
mkdir $HOME/.cache/flatpak-builder-ccache
export CCACHE_DIR=$HOME/.cache/flatpak-builder-ccacheTo prevent re-downloading files on every build (especially when using --force-clean), you can specify a persistent state directory using --state-dir.
# Create a directory for the cache
mkdir -p .flatpak-stateWhen using --state-dir, the --force-clean option only cleans the build artifacts within that state directory, but preserves the downloads subdirectory, effectively caching the source files.