From ca85eee7acc08c09737d580dd7711829c3943c3b Mon Sep 17 00:00:00 2001 From: hiento09 <136591877+hiento09@users.noreply.github.com> Date: Tue, 14 May 2024 19:03:10 +0700 Subject: [PATCH] Fix package error on windows (#563) Co-authored-by: Hien To --- cortex-cpp/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cortex-cpp/Makefile b/cortex-cpp/Makefile index 9f4c98d1b..e9f1d85b0 100644 --- a/cortex-cpp/Makefile +++ b/cortex-cpp/Makefile @@ -31,13 +31,13 @@ endif package: ifeq ($(OS),Windows_NT) - @powershell -Command "mkdir -p cortex-cpp\engines\cortex.llamacpp\; cp build\engines\cortex.llamacpp\engine.dll cortex-cpp\engines\cortex.llamacpp\;" - @powershell -Command "cp build\Release\cortex-cpp.exe .\cortex-cpp\;" - @powershell -Command "cp build-deps\_install\bin\zlib.dll .\cortex-cpp\;" - @powershell -Command "cp ..\.github\patches\windows\msvcp140.dll .\cortex-cpp\;" - @powershell -Command "cp ..\.github\patches\windows\vcruntime140_1.dll .\cortex-cpp\;" - @powershell -Command "cp ..\.github\patches\windows\vcruntime140.dll .\cortex-cpp\;" - @powershell -Command "7z a -ttar temp.tar cortex-cpp\\*; 7z a -tgzip cortex-cpp.tar.gz temp.tar;" + @powershell -Command "mkdir -p cortex-cpp\engines\cortex.llamacpp\; cp -r build\engines\cortex.llamacpp\engine.dll cortex-cpp\engines\cortex.llamacpp\;" + @powershell -Command "cp -r build\Release\cortex-cpp.exe .\cortex-cpp\;" + @powershell -Command "cp -r build-deps\_install\bin\zlib.dll .\cortex-cpp\;" + @powershell -Command "cp -r ..\.github\patches\windows\msvcp140.dll .\cortex-cpp\;" + @powershell -Command "cp -r ..\.github\patches\windows\vcruntime140_1.dll .\cortex-cpp\;" + @powershell -Command "cp -r ..\.github\patches\windows\vcruntime140.dll .\cortex-cpp\;" + @powershell -Command "7z a -ttar temp.tar cortex-cpp\*; 7z a -tgzip cortex-cpp.tar.gz temp.tar;" else ifeq ($(shell uname -s),Linux) @mkdir -p cortex-cpp/engines/cortex.llamacpp; \ cp build/engines/cortex.llamacpp/libengine.so cortex-cpp/engines/cortex.llamacpp/; \