add build cdn_manager in publish.cmd

This commit is contained in:
Alex Bezdieniezhnykh
2025-04-28 14:49:04 +03:00
parent 0274dd65a4
commit 046cc0eac6
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -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
+4
View File
@@ -71,8 +71,12 @@ copy venv\Lib\site-packages\tensorrt_libs\nvonnxparser_10.dll ..\dist
copy config.production.yaml ..\dist\config.yaml copy config.production.yaml ..\dist\config.yaml
cd.. cd..
echo Download onnx model echo Download onnx model
cd build cd build
echo Install cdn_manager
call build_cdn_manager
call cdn_manager.exe download models call cdn_manager.exe download models
move models ..\dist\ move models ..\dist\
cd.. cd..