Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.
AppRun names missing system graphics libraries in a dialog instead of ending with a Python traceback
Bowen Xue27a7e68f27f8
diff --git a/scripts/build_linux.py b/scripts/build_linux.pyindex c091106..b6c01db 100644--- a/scripts/build_linux.py+++ b/scripts/build_linux.py@@ -79,6 +79,18 @@ StartupWMClass=FreeVideoAPP_RUN = '''#!/bin/sh# The AppImage runtime sets APPDIR; resolve it here for extracted runs too.HERE="$(dirname "$(readlink -f "$0")")"+# A launcher that cannot start leaves its message on a terminal nobody sees: show it in a dialog too.+fv_stop() {+ printf '%s\\n%s\\n' "$1" "$2" >&2+ if command -v zenity >/dev/null 2>&1; then zenity --error --title=FreeVideo --text="$1\\n$2"+ elif command -v kdialog >/dev/null 2>&1; then kdialog --title FreeVideo --error "$1+$2"+ elif command -v notify-send >/dev/null 2>&1; then notify-send FreeVideo "$1 $2"+ elif command -v xmessage >/dev/null 2>&1; then xmessage -center "$1+$2"+ fi+ exit 1+}# The launcher needs glibc 2.34; on an older system it fails with a message on a terminal nobody sees.glibc="$(getconf GNU_LIBC_VERSION 2>/dev/null | sed 's/^[^0-9]*//')"major="${glibc%%.*}"@@ -88,20 +100,22 @@ case "$major$minor" in''|*[!0-9]*) ;;*)if [ "$major" -lt 2 ] || { [ "$major" -eq 2 ] && [ "$minor" -lt 34 ]; }; then- zh="此系统版本过旧,无法运行 FreeVideo 桌面版。请使用 2022 年及以后发布的 Linux 发行版,或按 Linux 安装说明在终端中运行 setup.sh 安装。"- en="This system is too old to run the FreeVideo desktop app. Use a Linux distribution released in 2022 or later, or follow the Linux installation guide to install with setup.sh in a terminal."- printf '%s\\n%s\\n' "$zh" "$en" >&2- if command -v zenity >/dev/null 2>&1; then zenity --error --title=FreeVideo --text="$zh\\n$en"- elif command -v kdialog >/dev/null 2>&1; then kdialog --title FreeVideo --error "$zh-$en"- elif command -v notify-send >/dev/null 2>&1; then notify-send FreeVideo "$zh $en"- elif command -v xmessage >/dev/null 2>&1; then xmessage -center "$zh-$en"- fi- exit 1+ fv_stop "此系统版本过旧,无法运行 FreeVideo 桌面版。请使用 2022 年及以后发布的 Linux 发行版,或按 Linux 安装说明在终端中运行 setup.sh 安装。" \\+ "This system is too old to run the FreeVideo desktop app. Use a Linux distribution released in 2022 or later, or follow the Linux installation guide to install with setup.sh in a terminal."fi;;esac+# The window needs the system's graphics libraries (OpenGL, EGL, ...); a minimal system lacks them and the launcher+# would end with a Python traceback instead.+if command -v ldd >/dev/null 2>&1; then+ libs="$HERE/usr/lib/FreeVideo/_internal"+ missing="$(LD_LIBRARY_PATH="$libs:$libs/PySide6/Qt/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" ldd "$libs/PySide6/Qt/plugins/platforms/libqxcb.so" 2>/dev/null \\+ | sed -n 's/^[[:space:]]*\\(lib[^ ]*\\) => not found.*/\\1/p' | sort -u | tr '\\n' ' ' | sed 's/ $//; s/ /, /g')"+ if [ -n "$missing" ]; then+ fv_stop "缺少系统图形库:$missing。请联系系统管理员安装提供这些库的软件包(例如 Ubuntu、Debian 上的 libgl1、libegl1,Fedora 上的 mesa-libGL、mesa-libEGL),完成后重新打开 FreeVideo。" \\+ "Missing system graphics libraries: $missing. Ask your administrator to install the packages that provide them (for example libgl1 and libegl1 on Ubuntu and Debian, mesa-libGL and mesa-libEGL on Fedora), then open FreeVideo again."+ fi+fiexec "$HERE/usr/lib/FreeVideo/FreeVideo" "$@"'''