mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:46:30 +00:00
a493606f64
fix publishing
64 lines
1.5 KiB
Batchfile
64 lines
1.5 KiB
Batchfile
@echo off
|
|
|
|
cd %~dp0..
|
|
echo Build .net app
|
|
dotnet build -c Release
|
|
|
|
cd Azaion.Suite
|
|
call upload.cmd Release
|
|
|
|
echo Publish .net app
|
|
dotnet publish -r win-x64 -p:SatelliteResourceLanguages="en" -p:DebugSymbols=false -p:ForPublish=true --self-contained true
|
|
cd ..
|
|
rmdir dist /s /q
|
|
xcopy Azaion.Suite\bin\Release\net8.0-windows\win-x64\publish dist\ /s /e /q
|
|
|
|
mkdir dist\dummy
|
|
move dist\Azaion.Annotator.dll dist\dummy\
|
|
move dist\Azaion.Dataset.dll dist\dummy\
|
|
|
|
echo Build Cython app
|
|
cd Azaion.Inference
|
|
call ".\venv\Scripts\activate.bat"
|
|
pyinstaller --onefile ^
|
|
--collect-all jwt ^
|
|
--collect-all requests ^
|
|
--collect-all psutil ^
|
|
--collect-all msgpack ^
|
|
--collect-all zmq ^
|
|
--collect-all cryptography ^
|
|
--collect-all cv2 ^
|
|
--collect-all onnxruntime ^
|
|
--hidden-import constants ^
|
|
--hidden-import annotation ^
|
|
--hidden-import credentials ^
|
|
--hidden-import file_data ^
|
|
--hidden-import user ^
|
|
--hidden-import security ^
|
|
--hidden-import secure_model ^
|
|
--hidden-import api_client ^
|
|
--hidden-import hardware_service ^
|
|
--hidden-import remote_command ^
|
|
--hidden-import ai_config ^
|
|
--hidden-import inference ^
|
|
--hidden-import remote_command_handler ^
|
|
start.py
|
|
move dist\start.exe ..\dist\azaion-inference.exe
|
|
copy config.yaml ..\dist
|
|
cd..
|
|
|
|
echo Download onnx model
|
|
cd build
|
|
call cdn_manager.exe download models azaion.onnx.big
|
|
move azaion.onnx.big ..\dist\
|
|
cd..
|
|
|
|
echo Copy ico
|
|
copy logo.ico dist\
|
|
|
|
echo building installer...
|
|
iscc build\installer.iss
|
|
cd build\
|
|
|
|
echo uploading installer...
|
|
call .\cdn_manager.exe upload suite AzaionSuiteInstaller.exe ..\AzaionSuiteInstaller.exe |