Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

build(engine): follow a symlinked toolkit root when locating the runtime

Akarshan Biswasc9ab81aa8aca
diff --git a/src-tauri/build-utils/stage-engine.sh b/src-tauri/build-utils/stage-engine.sh
index 1669581d0..3c49d0f80 100755
--- a/src-tauri/build-utils/stage-engine.sh
+++ b/src-tauri/build-utils/stage-engine.sh
@@ -133,7 +133,7 @@ roots=("${CUDA_PATH:-}" "${CUDA_HOME:-}")
LIBDIR=""
for root in "${roots[@]}"; do
[ -n "$root" ] && [ -d "$root" ] || continue
- hit="$(find "$root" -maxdepth 3 -iname "$first" -print -quit 2>/dev/null)"
+ hit="$(find -H "$root" -maxdepth 3 -iname "$first" -print -quit 2>/dev/null)"
if [ -n "$hit" ]; then LIBDIR="$(dirname "$hit")"; break; fi
done
[ -n "$LIBDIR" ] || {