Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix(ci): stop linuxdeploy requiring libcuda.so.1 on hosted runners
Minh1411202acf591a6fb3
diff --git a/src-tauri/build-utils/shim-linuxdeploy.sh b/src-tauri/build-utils/shim-linuxdeploy.shindex df820fb18..c32ea5d06 100755--- a/src-tauri/build-utils/shim-linuxdeploy.sh+++ b/src-tauri/build-utils/shim-linuxdeploy.sh@@ -11,7 +11,7 @@ export COREPACK_HOME=${COREPACK_HOME:-${XDG_CACHE_HOME:-$HOME/.cache}/node/corep# move cache home to <project root>/.cacheexport XDG_CACHE_HOME=${PWD}/.cache-LINUXDEPLOY_VER="1-alpha-20250213-2"+LINUXDEPLOY_VER="1-alpha-20251107-1"LINUXDEPLOY="$XDG_CACHE_HOME/tauri/linuxdeploy-$LINUXDEPLOY_VER-x86_64.AppImage"SYMLINK="$XDG_CACHE_HOME/tauri/linuxdeploy-x86_64.AppImage"@@ -33,4 +33,16 @@ ln -s "$LINUXDEPLOY" "$SYMLINK"# the documented fallback and costs a little disk on a host that has FUSE.export APPIMAGE_EXTRACT_AND_RUN=1+# libggml-cuda.so needs libcuda.so.1, which comes with the NVIDIA driver, not the+# toolkit, and linuxdeploy fails on any dependency it cannot resolve. Resolve it+# to the toolkit's stub, and exclude it so the stub never lands in the AppImage:+# at runtime it has to be the user's driver.+CUDA_STUB="${CUDA_PATH:-}/lib/stubs/libcuda.so"+if [ -f "$CUDA_STUB" ]; then+ mkdir -p "$XDG_CACHE_HOME/cuda-stubs"+ cp "$CUDA_STUB" "$XDG_CACHE_HOME/cuda-stubs/libcuda.so.1"+ export LD_LIBRARY_PATH="$XDG_CACHE_HOME/cuda-stubs${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"+ export LINUXDEPLOY_EXCLUDED_LIBRARIES="libcuda.so.1"+fi+"$@"\ No newline at end of file