From 6380c64f4d8ad6bbfc05e3a39f15f5ddbe9b9691 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sun, 25 Aug 2024 14:08:40 +0200 Subject: [PATCH] sigrok-appimage-create-appimage.sh: Fix hardcoded python version --- ci/appimage/sigrok-appimage-create-appimage.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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