From: Soeren Apel Date: Sun, 25 Aug 2024 12:08:40 +0000 (+0200) Subject: sigrok-appimage-create-appimage.sh: Fix hardcoded python version X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6380c64f4d8ad6bbfc05e3a39f15f5ddbe9b9691;p=sigrok-build.git sigrok-appimage-create-appimage.sh: Fix hardcoded python version --- diff --git a/ci/appimage/sigrok-appimage-create-appimage.sh b/ci/appimage/sigrok-appimage-create-appimage.sh index 6e1fca6..6491301 100755 --- a/ci/appimage/sigrok-appimage-create-appimage.sh +++ b/ci/appimage/sigrok-appimage-create-appimage.sh @@ -41,7 +41,9 @@ cp -r "$INSTALL_DIR"/share/sigrok-firmware "$APP_DIR"/usr/share # Copy extra Python files mkdir -p "$APP_DIR"/usr/share/pyshared -cp -r /usr/lib/python3.6/* "$APP_DIR"/usr/share/pyshared +# Find local python path of the latest version, e.g. /usr/lib/python3.12 +export LOCAL_PYTHON_PATH=`find /usr/lib -maxdepth 1 -iname "python3*" | sort -V | tail -n 1` +cp -r $LOCAL_PYTHON_PATH/* "$APP_DIR"/usr/share/pyshared # AppImage build dir mkdir -p appimage-build