mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:26:31 +00:00
28 lines
962 B
Batchfile
28 lines
962 B
Batchfile
echo Build .net app
|
|
set CURRENT_DIR=%cd%
|
|
cd /d %~dp0..
|
|
|
|
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 ..
|
|
|
|
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-azaion\dummy
|
|
robocopy "dist" "dist-azaion\dummy" "Azaion.Annotator.dll" "Azaion.Dataset.dll" /MOV
|
|
robocopy "dist" "dist-azaion" "Azaion.Common.dll" "Azaion.CommonSecurity.dll" "Azaion.Suite.deps.json" "Azaion.Suite.dll" "Azaion.Suite.exe" "Azaion.Suite.runtimeconfig.json" "config.json" "logo.png" /MOV
|
|
if exist dist\libvlc\win-x86 rmdir dist\libvlc\win-x86 /s /q
|
|
robocopy "dist" "dist-dlls" /E /MOVE
|
|
|
|
echo Copy ico
|
|
copy logo.ico dist-azaion\
|
|
|
|
cd /d %CURRENT_DIR% |