mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
3a054d5a90
The CI infrastructure was changed to run with fewer privileges, so we need to adapt our Flatpak jobs to compensate. See: https://mail.gnome.org/archives/desktop-devel-list/2020-February/msg00055.html
43 lines
1.0 KiB
Bash
43 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
appid=$1
|
|
|
|
builddir=flatpak_app
|
|
repodir=repo
|
|
|
|
flatpak-builder \
|
|
--user --disable-rofiles-fuse \
|
|
--stop-at=gtk \
|
|
${builddir} \
|
|
build-aux/flatpak/${appid}.json
|
|
|
|
flatpak build ${builddir} meson \
|
|
--prefix=/app \
|
|
--libdir=/app/lib \
|
|
--buildtype=release \
|
|
-Dx11-backend=true \
|
|
-Dwayland-backend=true \
|
|
-Dprint-backends=file \
|
|
-Dbuild-tests=false \
|
|
-Dbuild-examples=false \
|
|
-Dintrospection=false \
|
|
-Ddemos=true \
|
|
_flatpak_build
|
|
|
|
flatpak build ${builddir} ninja -C _flatpak_build install
|
|
|
|
flatpak-builder \
|
|
--user --disable-rofiles-fuse \
|
|
--finish-only \
|
|
--repo=${repodir} \
|
|
${builddir} \
|
|
build-aux/flatpak/${appid}.json
|
|
|
|
flatpak build-bundle \
|
|
${repodir} \
|
|
${appid}-dev.flatpak \
|
|
--runtime-repo=https://nightly.gnome.org/gnome-nightly.flatpakrepo \
|
|
${appid}
|