-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.bat
34 lines (30 loc) · 1.27 KB
/
install.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
:: Installation script :::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: .NET YOLO Object Detection
::
:: This script is only called from ..\..\CodeProject.AI-Server\src\setup.bat in
:: Dev setup, or ..\..\src\setup.bat in production
::
:: For help with install scripts, notes on variables and methods available, tips,
:: and explanations, see /src/modules/install_script_help.md
@if "%1" NEQ "install" (
echo This script is only called from ..\..\CodeProject.AI-Server\src\setup.bat
@pause
@goto:eof
)
REM Backwards compatibility with Server 2.6.5
if "!utilsScript!" == "" if "!sdkScriptsDirPath!" NEQ "" set utilsScript=%sdkScriptsDirPath%\utils.bat
if /i "!executionEnvironment!" == "Production" (
call "!utilsScript!" WriteLine "No custom setup steps for this module." "!color_info!"
) else (
:: If we're in dev-setup mode we'll build the module now so the self-test will work
pushd "!moduleDirPath!"
call "!utilsScript!" WriteLine "Building project..." "!color_info!"
if /i "%verbosity%" neq "quiet" (
dotnet build -c Debug -o "!moduleDirPath!/bin/Debug/!dotNetTarget!"
) else (
dotnet build -c Debug -o "!moduleDirPath!/bin/Debug/!dotNetTarget!" >NUL
)
popd
)
REM set moduleInstallErrors=