From 046cc0eac66e731550435430a58c43f0837588ea Mon Sep 17 00:00:00 2001 From: Alex Bezdieniezhnykh Date: Mon, 28 Apr 2025 14:49:04 +0300 Subject: [PATCH] add build cdn_manager in publish.cmd --- build/build_cdn_manager.cmd | 7 +++++++ build/publish.cmd | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 build/build_cdn_manager.cmd diff --git a/build/build_cdn_manager.cmd b/build/build_cdn_manager.cmd new file mode 100644 index 0000000..94b0cd6 --- /dev/null +++ b/build/build_cdn_manager.cmd @@ -0,0 +1,7 @@ +python -m venv venv +venv\Scripts\pip install -r requirements.txt +venv\Scripts\pyinstaller --onefile --collect-all boto3 cdn_manager.py +move dist\cdn_manager.exe .\cdn_manager.exe +rmdir /s /q dist +rmdir /s /q build + diff --git a/build/publish.cmd b/build/publish.cmd index 60a160a..3a9a91d 100644 --- a/build/publish.cmd +++ b/build/publish.cmd @@ -71,8 +71,12 @@ copy venv\Lib\site-packages\tensorrt_libs\nvonnxparser_10.dll ..\dist copy config.production.yaml ..\dist\config.yaml cd.. + echo Download onnx model cd build +echo Install cdn_manager +call build_cdn_manager + call cdn_manager.exe download models move models ..\dist\ cd..