From 0d9417a8c7ed4e9134187236ea22a90d4b579bc5 Mon Sep 17 00:00:00 2001 From: Shikakiben <108907095@users.noreply.github.com> Date: Tue, 10 Nov 2026 12:45:33 -0500 Subject: [PATCH] Check zbic in the Linux AppImage the way make_game.py imports it. The AppImage tested for zbic with PYTHONPATH and the user's site-packages in view, then ran the build with Python's isolated mode, which sees neither. A player with zbic installed for their own Python of the same minor version passed the test, never got it installed where the build looks, and was told to run the pip command that had put it in the place the build ignores. The test now uses the same isolation and the same search path as the build, so zbic is installed into the AppImage's own folder whenever the build could not import it. From pull request #436. Co-Authored-By: Claude Fable 5.2 --- tools/make_appimage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/make_appimage.py b/tools/make_appimage.py index 99696708..79991371 100644 --- a/tools/make_appimage.py +++ b/tools/make_appimage.py @@ -91,7 +91,7 @@ EOF exit 1 fi -if ! PYTHONPATH="$PYDEPS" "$PY" -c 'import zbic' 2>/dev/null; then +if ! "$PY" -I -c 'import sys; sys.path[:0] = [sys.argv[1]]; import zbic' "$PYDEPS" 2>/dev/null; then echo "Installing zbic (GPL-2.0, unpacks the game's program files) into $PYDEPS ..." "$PY" -m pip install --quiet --disable-pip-version-check --target "$PYDEPS" zbic || { echo "error: pip could not install zbic (it needs the internet once)" >&2