From 8abef33840c02052557ef6123eef835a465f810f Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 4 Nov 2025 17:37:32 +0100 Subject: [PATCH] Update build_appimage.sh --- AppImage/scripts/build_appimage.sh | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/AppImage/scripts/build_appimage.sh b/AppImage/scripts/build_appimage.sh index 66493f3..9e84245 100644 --- a/AppImage/scripts/build_appimage.sh +++ b/AppImage/scripts/build_appimage.sh @@ -279,6 +279,7 @@ pip3 install --target "$APP_DIR/usr/lib/python3/dist-packages" \ flask-cors \ psutil \ requests \ + PyJWT \ googletrans==4.0.0-rc1 \ httpx==0.13.3 \ httpcore==0.9.1 \ @@ -321,10 +322,6 @@ echo "🔧 Installing hardware monitoring tools..." mkdir -p "$WORK_DIR/debs" cd "$WORK_DIR/debs" - -# ============================================================== - - echo "📥 Downloading hardware monitoring tools (dynamic via APT)..." dl_pkg() { @@ -361,21 +358,12 @@ dl_pkg() { return 1 } -mkdir -p "$WORK_DIR/debs" -cd "$WORK_DIR/debs" - - dl_pkg "ipmitool.deb" "ipmitool" || true dl_pkg "libfreeipmi17.deb" "libfreeipmi17" || true dl_pkg "lm-sensors.deb" "lm-sensors" || true dl_pkg "nut-client.deb" "nut-client" || true dl_pkg "libupsclient.deb" "libupsclient6" "libupsclient5" "libupsclient4" || true - -# dl_pkg "nvidia-smi.deb" "nvidia-smi" "nvidia-utils" "nvidia-utils-535" "nvidia-utils-550" || true -# dl_pkg "intel-gpu-tools.deb" "intel-gpu-tools" || true -# dl_pkg "radeontop.deb" "radeontop" || true - echo "📦 Extracting .deb packages into AppDir..." extracted_count=0 shopt -s nullglob @@ -395,7 +383,6 @@ else echo "✅ Extracted $extracted_count package(s)" fi - if [ -d "$APP_DIR/bin" ]; then echo "📋 Normalizing /bin -> /usr/bin" mkdir -p "$APP_DIR/usr/bin" @@ -403,24 +390,20 @@ if [ -d "$APP_DIR/bin" ]; then rm -rf "$APP_DIR/bin" fi - echo "🔍 Sanity check (ldd + presence of libfreeipmi)" export LD_LIBRARY_PATH="$APP_DIR/lib:$APP_DIR/lib/x86_64-linux-gnu:$APP_DIR/usr/lib:$APP_DIR/usr/lib/x86_64-linux-gnu" - if ! find "$APP_DIR/usr/lib" "$APP_DIR/lib" -maxdepth 3 -name 'libfreeipmi.so.17*' | grep -q .; then echo "❌ libfreeipmi.so.17 not found inside AppDir (ipmitool will fail)" exit 1 fi - if [ -x "$APP_DIR/usr/bin/ipmitool" ] && ldd "$APP_DIR/usr/bin/ipmitool" | grep -q 'not found'; then echo "❌ ipmitool has unresolved libs:" ldd "$APP_DIR/usr/bin/ipmitool" | grep 'not found' || true exit 1 fi - if [ -x "$APP_DIR/usr/bin/upsc" ] && ldd "$APP_DIR/usr/bin/upsc" | grep -q 'not found'; then echo "⚠️ upsc has unresolved libs, trying to auto-fix..." missing="$(ldd "$APP_DIR/usr/bin/upsc" | awk '/not found/{print $1}' | tr -d ' ')" @@ -463,12 +446,6 @@ echo "✅ Sanity check OK (ipmitool/upsc ready; libfreeipmi present)" [ -x "$APP_DIR/usr/bin/intel_gpu_top" ] && echo " • intel-gpu-tools: OK" || echo " • intel-gpu-tools: missing" [ -x "$APP_DIR/usr/bin/radeontop" ] && echo " • radeontop: OK" || echo " • radeontop: missing" - - -# ============================================================== - - - # Build AppImage echo "🔨 Building unified AppImage v${VERSION}..." cd "$WORK_DIR"