Skip to content

Commit 8e8d424

Browse files
author
Chris Maunder
committed
Merge branch 'v2.9.0' of https://github.com/codeproject/CodeProject.AI-Server into v2.9.0
2 parents d4d14e4 + d6559de commit 8e8d424

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

src/demos/modules/DotNetSimple/install.bat

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,17 @@
1212
@pause
1313
@goto:eof
1414
)
15-
16-
set installBinaries=false
17-
if /i "!executionEnvironment!" == "Production" set installBinaries=true
18-
if /i "!launchedBy!" == "server" set installBinaries=true
19-
20-
:: Pull down the .NET executable of this module
21-
if /i "!installBinaries!" == "true" (
22-
set imageName=!moduleId!-!moduleVersion!.zip
23-
call "%utilsScript%" GetFromServer "binaries/" "!imageName!" "bin" "Downloading !imageName!..."
15+
if /i "!executionEnvironment!" == "Production" (
16+
call "!utilsScript!" WriteLine "No custom setup steps for this module." "!color_info!"
2417
) else (
2518
:: If we're in dev-setup mode we'll build the module now so the self-test will work
2619
pushd "!moduleDirPath!"
2720
call "!utilsScript!" WriteLine "Building project..." "!color_info!"
28-
dotnet build -c Debug -o "!moduleDirPath!/bin/Debug/!dotNetTarget!" >NUL
21+
if /i "%verbosity%" neq "quiet" (
22+
dotnet build -c Debug -o "!moduleDirPath!/bin/Debug/!dotNetTarget!"
23+
) else (
24+
dotnet build -c Debug -o "!moduleDirPath!/bin/Debug/!dotNetTarget!" >NUL
25+
)
2926
popd
3027
)
3128

src/demos/modules/PythonLongProcess/install.bat

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
@goto:eof
1414
)
1515

16-
REM Nothing to do here...
16+
if /i "!executionEnvironment!" == "Production" (
17+
call "!utilsScript!" WriteLine "No custom setup steps for this module." "!color_info!"
18+
) else (
19+
:: If we're in dev-setup mode we'll build the module now so the self-test will work
20+
pushd "!moduleDirPath!"
21+
call "!utilsScript!" WriteLine "Building project..." "!color_info!"
22+
if /i "%verbosity%" neq "quiet" (
23+
dotnet build -c Debug -o "!moduleDirPath!/bin/Debug/!dotNetTarget!"
24+
) else (
25+
dotnet build -c Debug -o "!moduleDirPath!/bin/Debug/!dotNetTarget!" >NUL
26+
)
27+
popd
28+
)
1729

1830
REM set moduleInstallErrors=

0 commit comments

Comments
 (0)