mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:06:31 +00:00
add publish script, check its work
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
@echo off
|
||||
|
||||
|
||||
cd Azaion.Suite
|
||||
echo Build .net app
|
||||
dotnet build -c Release
|
||||
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
|
||||
Reference in New Issue
Block a user