@echo off cd %~dp0.. echo Build .net app dotnet build -c Release cd Azaion.Suite call postbuild.cmd Release echo %cd% call upload-file %cd%\config.secured.json call upload-file %cd%\config.system.json 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 del dist\config.json move dist\config.production.json dist\config.json mkdir dist\dummy move dist\Azaion.Annotator.dll dist\dummy\ move dist\Azaion.Dataset.dll dist\dummy\ echo Build Cython app cd Azaion.Inference echo remove dist folder: rmdir dist /s /q echo install python and dependencies python -m venv venv venv\Scripts\pip install -r requirements.txt venv\Scripts\python setup.py build_ext --inplace echo install azaion-inference venv\Scripts\pyinstaller --name=azaion-inference ^ --collect-all jwt ^ --collect-all requests ^ --collect-all psutil ^ --collect-all msgpack ^ --collect-all zmq ^ --collect-all cryptography ^ --collect-all cv2 ^ --collect-all onnxruntime ^ --collect-all tensorrt ^ --collect-all pycuda ^ --collect-all re ^ --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_engine ^ --hidden-import inference ^ --hidden-import remote_command_handler ^ start.py xcopy /E dist\azaion-inference ..\dist\ copy venv\Lib\site-packages\tensorrt_libs\nvinfer_10.dll ..\dist copy venv\Lib\site-packages\tensorrt_libs\nvinfer_plugin_10.dll ..\dist 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 call cdn_manager.exe download models azaion.onnx.big call cdn_manager.exe download models azaion.engine.big move azaion.* ..\dist\ cd.. echo Copy ico copy logo.ico dist\ echo Copying cudnn files set cudnn-folder="C:\Program Files\NVIDIA\CUDNN\v9.4\bin\12.6" copy %cudnn-folder%\* dist\* @REM don't need del dist\cudnn_adv64_9.dll set DESTINATION=dist\gps-denied\ rd /S /Q %DESTINATION% mkdir %DESTINATION% copy ..\gps-denied\image-matcher\build\Desktop_Qt_6_9_0_MSVC2022_64bit-Release\release\image-matcher.exe %DESTINATION% copy ..\gps-denied\.libs\libzmq\build\dist\bin\libzmq-v143-mt-4_3_6.dll %DESTINATION% copy ..\gps-denied\.libs\onnxruntime\lib\onnxruntime.dll %DESTINATION% copy ..\gps-denied\.libs\onnxruntime\lib\onnxruntime_providers_cuda.dll %DESTINATION% copy ..\gps-denied\.libs\onnxruntime\lib\onnxruntime_providers_shared.dll %DESTINATION% copy ..\gps-denied\.libs\opencv\build\x64\vc16\bin\opencv_world4110.dll %DESTINATION% copy C:\Qt\6.9.0\msvc2022_64\bin\Qt6Core.dll %DESTINATION% mkdir %DESTINATION%\models copy ..\gps-denied-work\models\* %DESTINATION%\models @REM echo building installer... @REM iscc build\installer.iss