mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 12:20:08 +00:00
cf8cca8724
This variable is refrenced at build-aux/meson/gen-demo-header.py but never passed to the flatpak builder. This fixes that the flatpak build don't have their commit in the about window.
50 lines
1.3 KiB
Bash
50 lines
1.3 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=debugoptimized \
|
|
-Dx11-backend=true \
|
|
-Dwayland-backend=true \
|
|
-Dvulkan=disabled \
|
|
-Dbuild-tests=false \
|
|
-Dbuild-testsuite=false \
|
|
-Dbuild-examples=false \
|
|
-Dintrospection=disabled \
|
|
-Dbuild-demos=true \
|
|
-Ddemo-profile=devel \
|
|
_flatpak_build
|
|
|
|
flatpak build --env=CI_COMMIT_SHORT_SHA=$CI_COMMIT_SHORT_SHA ${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}
|
|
|
|
# to be consumed by the nightly publish jobs
|
|
if [[ $CI_COMMIT_BRANCH == main ]]; then
|
|
tar cf repo.tar ${repodir}
|
|
fi
|