From dd42292eee02b5c0391de4da37887b877438dc0b Mon Sep 17 00:00:00 2001 From: Alex Bezdieniezhnykh Date: Mon, 14 Apr 2025 17:25:54 +0300 Subject: [PATCH] script fixes --- Azaion.Suite/Azaion.Suite.csproj | 2 +- Azaion.Suite/{upload.cmd => postbuild.cmd} | 0 build/publish.cmd | 13 ++++++++++--- 3 files changed, 11 insertions(+), 4 deletions(-) rename Azaion.Suite/{upload.cmd => postbuild.cmd} (100%) diff --git a/Azaion.Suite/Azaion.Suite.csproj b/Azaion.Suite/Azaion.Suite.csproj index d3e1689..cde203f 100644 --- a/Azaion.Suite/Azaion.Suite.csproj +++ b/Azaion.Suite/Azaion.Suite.csproj @@ -64,7 +64,7 @@ - + diff --git a/Azaion.Suite/upload.cmd b/Azaion.Suite/postbuild.cmd similarity index 100% rename from Azaion.Suite/upload.cmd rename to Azaion.Suite/postbuild.cmd diff --git a/build/publish.cmd b/build/publish.cmd index 0da19f2..c53bd8c 100644 --- a/build/publish.cmd +++ b/build/publish.cmd @@ -5,7 +5,7 @@ echo Build .net app dotnet build -c Release cd Azaion.Suite -call upload Release +call postbuild.cmd Release echo %cd% call upload-file %cd%\config.secured.json call upload-file %cd%\config.system.json @@ -23,9 +23,16 @@ move dist\Azaion.Dataset.dll dist\dummy\ echo Build Cython app cd Azaion.Inference +echo remove dist folder: rmdir dist /s /q -.\venv\Scripts\pyinstaller --name=azaion-inference ^ +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 ^ @@ -83,7 +90,7 @@ del dist\cudnn_adv64_9.dll set DESTINATION=dist\gps-denied\ rd /S /Q %DESTINATION% -mkdir -p %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%