Files
annotations/build/publish.cmd
T
Alex Bezdieniezhnykh 2d83aa06b9 fix build script
2025-04-30 20:57:15 +03:00

63 lines
1.6 KiB
Batchfile

@echo off
cd %~dp0..
echo Build .net app
dotnet build -c Release
cd Azaion.Suite
call postbuild.cmd Release
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\
call Azaion.Inference\build.cmd
cd %~dp0..
echo Download onnx model
cd build
if not exist cdn_manager.exe (
echo Install cdn_manager
call build_cdn_manager
)
call cdn_manager.exe download models
move models ..\dist\
cd..
echo Copy ico
copy logo.ico dist\
echo Copying shared libs
xcopy /E C:\\share\* dist\
set DESTINATION=dist\gps-denied\
if exist %DESTINATION% rmdir /S /Q %DESTINATION%
mkdir %DESTINATION%
echo copy gps denied files
copy ..\gps-denied\image-matcher\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%
mkdir %DESTINATION%\models
copy C:\\share\gps-models\* %DESTINATION%\models
echo building installer...
iscc build\installer.iss