2018-03-27 11:45:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
appid=$1
|
|
|
|
|
2020-02-12 18:21:00 +00:00
|
|
|
builddir=flatpak_app
|
2018-03-27 11:45:20 +00:00
|
|
|
repodir=repo
|
|
|
|
|
|
|
|
flatpak-builder \
|
2020-02-19 15:04:58 +00:00
|
|
|
--user --disable-rofiles-fuse \
|
2018-03-27 11:45:20 +00:00
|
|
|
--stop-at=gtk \
|
|
|
|
${builddir} \
|
|
|
|
build-aux/flatpak/${appid}.json
|
|
|
|
|
2020-02-12 18:21:00 +00:00
|
|
|
flatpak build ${builddir} meson \
|
|
|
|
--prefix=/app \
|
|
|
|
--libdir=/app/lib \
|
|
|
|
--buildtype=release \
|
2018-03-27 11:45:20 +00:00
|
|
|
-Dx11-backend=true \
|
|
|
|
-Dwayland-backend=true \
|
|
|
|
-Dprint-backends=file \
|
|
|
|
-Dbuild-tests=false \
|
|
|
|
-Dbuild-examples=false \
|
2020-09-30 13:41:28 +00:00
|
|
|
-Dintrospection=disabled \
|
2018-03-27 11:45:20 +00:00
|
|
|
-Ddemos=true \
|
2021-05-18 11:37:09 +00:00
|
|
|
-Dprofile=devel \
|
2020-02-19 15:04:58 +00:00
|
|
|
_flatpak_build
|
2018-03-27 11:45:20 +00:00
|
|
|
|
2020-02-19 15:04:58 +00:00
|
|
|
flatpak build ${builddir} ninja -C _flatpak_build install
|
2018-03-27 11:45:20 +00:00
|
|
|
|
|
|
|
flatpak-builder \
|
2020-02-19 15:04:58 +00:00
|
|
|
--user --disable-rofiles-fuse \
|
2018-03-27 11:45:20 +00:00
|
|
|
--finish-only \
|
|
|
|
--repo=${repodir} \
|
|
|
|
${builddir} \
|
|
|
|
build-aux/flatpak/${appid}.json
|
|
|
|
|
|
|
|
flatpak build-bundle \
|
|
|
|
${repodir} \
|
|
|
|
${appid}-dev.flatpak \
|
2020-02-12 18:21:00 +00:00
|
|
|
--runtime-repo=https://nightly.gnome.org/gnome-nightly.flatpakrepo \
|
2018-03-27 11:45:20 +00:00
|
|
|
${appid}
|
2020-11-13 18:00:17 +00:00
|
|
|
|
|
|
|
# to be consumed by the nightly publish jobs
|
|
|
|
if [[ $CI_COMMIT_BRANCH == master ]]; then
|
|
|
|
tar cf repo.tar ${repodir}
|
|
|
|
fi
|