build/linux: Add way to locally emulate flatpak CI building

This is useful to debugging only
This commit is contained in:
Bruno 2024-06-18 19:06:57 -03:00
parent f23b0744d7
commit a1cb43d977
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
ARCH=$(uname -m) ARCH=$(uname -m)
if [ -z "$GITLAB_CI" ]; then if [ -z "$GITLAB_CI" ] && [ "$1" != '--ci' ]; then
# Make the script work locally # Make the script work locally
if [ "$0" != 'build/linux/flatpak/2_build-gimp-flatpak.sh' ]; then if [ "$0" != 'build/linux/flatpak/2_build-gimp-flatpak.sh' ]; then
echo 'To run this script locally, please do it from to the gimp git folder' echo 'To run this script locally, please do it from to the gimp git folder'
@ -29,7 +29,7 @@ if [ -z "$GITLAB_CI" ]; then
flatpak-builder --run "$GIMP_PREFIX" ../build/linux/flatpak/org.gimp.GIMP-nightly.json.in ninja install flatpak-builder --run "$GIMP_PREFIX" ../build/linux/flatpak/org.gimp.GIMP-nightly.json.in ninja install
else elif [ "$GITLAB_CI" ] || [ "$1" = '--ci' ]; then
export GIMP_PREFIX="$PWD/_install-$ARCH" export GIMP_PREFIX="$PWD/_install-$ARCH"
# Configure manifest (ugly but works on CI) # Configure manifest (ugly but works on CI)