build/windows: Make clear crossbuild awful situation

Some contributors got confused about how to crossbuild on IRC. Let's help them.
This commit is contained in:
Bruno 2024-06-15 08:38:08 -03:00
parent 0397132184
commit b38d0455c3
No known key found for this signature in database
1 changed files with 12 additions and 1 deletions

View File

@ -16,7 +16,18 @@ if [ -z "$GITLAB_CI" ]; then
PARENT_DIR='../'
fi
# So that we can use gimp-console from gimp-debian-x64 project.
# FIXME: We need native/Linux gimp-console.
if [ ! -d '_build-x64' ]; then
echo -e '\033[31m(ERROR)\033[0m: Before running this script, first build GIMP natively in _build-x64'
fi
if [ ! -d '../_install-x64' ]; then
echo -e '\033[31m(ERROR)\033[0m: Before running this script, first install GIMP natively in ../_install-x64'
fi
if [ ! -d '_build-x64' ] || [ ! -d '../_install-x64' ]; then
echo 'Patches are very welcome: https://gitlab.gnome.org/GNOME/gimp/-/issues/11544'
exit 1
fi
GIMP_APP_VERSION=$(grep GIMP_APP_VERSION _build-x64/config.h | head -1 | sed 's/^.*"\([^"]*\)"$/\1/')
mkdir -p $PWD/${PARENT_DIR}.local/bin
GIMP_CONSOLE_PATH=$PWD/${PARENT_DIR}.local/bin/gimp-console-$GIMP_APP_VERSION