Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit ca85eee

Browse files
authored
Fix package error on windows (#563)
Co-authored-by: Hien To <tominhhien97@gmail.com>
1 parent 48dcae3 commit ca85eee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cortex-cpp/Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ endif
3131

3232
package:
3333
ifeq ($(OS),Windows_NT)
34-
@powershell -Command "mkdir -p cortex-cpp\engines\cortex.llamacpp\; cp build\engines\cortex.llamacpp\engine.dll cortex-cpp\engines\cortex.llamacpp\;"
35-
@powershell -Command "cp build\Release\cortex-cpp.exe .\cortex-cpp\;"
36-
@powershell -Command "cp build-deps\_install\bin\zlib.dll .\cortex-cpp\;"
37-
@powershell -Command "cp ..\.github\patches\windows\msvcp140.dll .\cortex-cpp\;"
38-
@powershell -Command "cp ..\.github\patches\windows\vcruntime140_1.dll .\cortex-cpp\;"
39-
@powershell -Command "cp ..\.github\patches\windows\vcruntime140.dll .\cortex-cpp\;"
40-
@powershell -Command "7z a -ttar temp.tar cortex-cpp\\*; 7z a -tgzip cortex-cpp.tar.gz temp.tar;"
34+
@powershell -Command "mkdir -p cortex-cpp\engines\cortex.llamacpp\; cp -r build\engines\cortex.llamacpp\engine.dll cortex-cpp\engines\cortex.llamacpp\;"
35+
@powershell -Command "cp -r build\Release\cortex-cpp.exe .\cortex-cpp\;"
36+
@powershell -Command "cp -r build-deps\_install\bin\zlib.dll .\cortex-cpp\;"
37+
@powershell -Command "cp -r ..\.github\patches\windows\msvcp140.dll .\cortex-cpp\;"
38+
@powershell -Command "cp -r ..\.github\patches\windows\vcruntime140_1.dll .\cortex-cpp\;"
39+
@powershell -Command "cp -r ..\.github\patches\windows\vcruntime140.dll .\cortex-cpp\;"
40+
@powershell -Command "7z a -ttar temp.tar cortex-cpp\*; 7z a -tgzip cortex-cpp.tar.gz temp.tar;"
4141
else ifeq ($(shell uname -s),Linux)
4242
@mkdir -p cortex-cpp/engines/cortex.llamacpp; \
4343
cp build/engines/cortex.llamacpp/libengine.so cortex-cpp/engines/cortex.llamacpp/; \

0 commit comments

Comments
 (0)