mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
1b62d28cbb
The YAML is getting hard to modify, so let's use a simple script like we do for the other CI jobs.
45 lines
1.0 KiB
Bash
45 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
appid=$1
|
|
|
|
builddir=app
|
|
repodir=repo
|
|
|
|
flatpak-builder \
|
|
--stop-at=gtk \
|
|
${builddir} \
|
|
build-aux/flatpak/${appid}.json
|
|
|
|
flatpak-builder \
|
|
--run ${builddir} build-aux/flatpak/${appid}.json \
|
|
meson \
|
|
--prefix /app \
|
|
--libdir /app/lib \
|
|
--buildtype debug \
|
|
-Dx11-backend=true \
|
|
-Dwayland-backend=true \
|
|
-Dprint-backends=file \
|
|
-Dbuild-tests=false \
|
|
-Dbuild-examples=false \
|
|
-Dintrospection=false \
|
|
-Ddemos=true \
|
|
_build .
|
|
|
|
flatpak-builder \
|
|
--run ${builddir} build-aux/flatpak/${appid}.json \
|
|
ninja -C _build install
|
|
|
|
flatpak-builder \
|
|
--finish-only \
|
|
--repo=${repodir} \
|
|
${builddir} \
|
|
build-aux/flatpak/${appid}.json
|
|
|
|
flatpak build-bundle \
|
|
${repodir} \
|
|
${appid}-dev.flatpak \
|
|
--runtime-repo=https://flathub.org/repo/flathub.flatpakrepo \
|
|
${appid}
|