File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,11 +132,14 @@ elif [[ "$OSTYPE" == "msys"* ]] || [[ "$OSTYPE" == "cygwin"* ]] || [[ "$OSTYPE"
132132 cd -
133133 fi
134134
135- # Copy DLL and import library to build/Release/ for node-gyp
135+ # Copy DLLs and import library to build/Release/ for node-gyp
136136 RELEASE_DIR=" build/Release"
137137 mkdir -p " $RELEASE_DIR "
138- cp " $LLAMA_DIR /build-windows/bin/Release/llama.dll" " $RELEASE_DIR /llama.dll"
139- echo " ✓ Copied llama.dll to $RELEASE_DIR /"
138+
139+ # Copy all DLLs (llama.dll depends on ggml*.dll)
140+ cp " $LLAMA_DIR /build-windows/bin/Release/" * .dll " $RELEASE_DIR /"
141+ echo " ✓ Copied DLLs to $RELEASE_DIR /:"
142+ ls -1 " $RELEASE_DIR /" * .dll | sed ' s/.*\// - /'
140143
141144 # Copy import library (.lib) - needed for linking
142145 # CMake may place it in lib/, bin/, or src/ depending on configuration
Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
4343 fi
4444elif [[ " $OSTYPE " == " msys" * ]] || [[ " $OSTYPE " == " cygwin" * ]] || [[ " $OSTYPE " == " win32" * ]]; then
4545 if [ -f " $LLAMA_DIR /build-windows/bin/Release/llama.dll" ]; then
46- cp " $LLAMA_DIR /build-windows/bin/Release/llama.dll" build/Release/
47- echo " ✓ Copied llama.dll to build/Release/"
46+ # Copy all DLLs (llama.dll depends on ggml*.dll)
47+ cp " $LLAMA_DIR /build-windows/bin/Release/" * .dll build/Release/
48+ echo " ✓ Copied DLLs to build/Release/:"
49+ ls -1 build/Release/* .dll | sed ' s/.*\// - /'
4850
4951 # Copy import library (.lib) - needed for linking
5052 # CMake may place it in lib/, bin/, or src/ depending on configuration
You can’t perform that action at this time.
0 commit comments