Skip to content

linz/qgis-flatpak

Repository files navigation

Flatpak QGIS packaging QT6 & Parquet

Custom flatpak packaging for QGIS, (QT6+Parquet)

Forked from https://github.com/flathub/org.qgis.qgis with QT6 & Parquet additions

Usage

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;

Building

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.json

Bundle 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.qgis

Perf:

set a larger cache

ccache --max-size 100G

Set a shared cache location

mkdir $HOME/.cache/flatpak-builder-ccache
export CCACHE_DIR=$HOME/.cache/flatpak-builder-ccache

Caching

To 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-state

When 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.

About

QGIS Flatpak Nightly Builds

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors