build/linux: Exit AppImage script if no 'config.h' file is present

This commit is contained in:
Bruno
2025-01-05 08:42:25 -03:00
parent dfd4563e25
commit 841a30bed1

View File

@ -81,6 +81,10 @@ if [ "$1" != '' ] && [[ ! "$1" =~ "--" ]]; then
else
export BUILD_DIR=$(echo $PWD/_build*$RUNNER)
fi
if [ ! -f "$BUILD_DIR/config.h" ]; then
echo -e "\033[31m(ERROR)\033[0m: config.h file not found. You can configure GIMP with meson to generate it."
exit 1
fi
## Get info about GIMP version
GIMP_VERSION=$(grep GIMP_VERSION $BUILD_DIR/config.h | head -1 | sed 's/^.*"\([^"]*\)"$/\1/')