@@ -48,6 +48,9 @@ set allowSharedPythonInstallsForModules=true
4848
4949:: Debug flags for downloads and installs
5050
51+ :: If you wish to allow external modules
52+ set installExternalModules = false
53+
5154:: Setup only the server, nothing else
5255set setupServerOnly = false
5356
@@ -363,7 +366,11 @@ if /i "!executionEnvironment!" == "Development" (
363366 pushd !rootDirPath! \utils\ParseJSON
364367 if not exist ParseJSON.exe (
365368 call " !utilsScript! " WriteLine " Building ParseJSON"
366- dotnet build /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary -c Release > NUL
369+ if /i " !verbosity! " == " quiet" (
370+ dotnet build /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary -c Release > NUL
371+ ) else (
372+ dotnet build /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary -c Release
373+ )
367374 if exist .\bin\Release\net7.0\ move .\bin\Release\net7.0\* . > nul
368375 )
369376 popd
@@ -437,25 +444,27 @@ if /i "!setupMode!" == "SetupEverything" (
437444 if " !moduleInstallErrors! " NEQ " " set success = false
438445 )
439446
440- call " !utilsScript! " WriteLine
441- call " !utilsScript! " WriteLine " Processing External CodeProject.AI Server Modules" " White" " DarkGreen" !lineWidth!
442- call " !utilsScript! " WriteLine
447+ if /i " !installExternalModules! " == " true" (
448+ call " !utilsScript! " WriteLine
449+ call " !utilsScript! " WriteLine " Processing External CodeProject.AI Server Modules" " White" " DarkGreen" !lineWidth!
450+ call " !utilsScript! " WriteLine
443451
444- if exist !externalModulesDirPath! (
445- for /f " delims=" %%D in ('dir /a:d /b " !externalModulesDirPath! " ') do (
446- set moduleDirName = %%~nxD
447- set moduleDirPath = !externalModulesDirPath! \!moduleDirName!
452+ if exist !externalModulesDirPath! (
453+ for /f " delims=" %%D in ('dir /a:d /b " !externalModulesDirPath! " ') do (
454+ set moduleDirName = %%~nxD
455+ set moduleDirPath = !externalModulesDirPath! \!moduleDirName!
448456
449- call " !utilsScript! " GetModuleIdFromModuleSettingsFile " !moduleDirPath! \modulesettings.json"
450- set moduleId = !moduleSettingValue!
457+ call " !utilsScript! " GetModuleIdFromModuleSettingsFile " !moduleDirPath! \modulesettings.json"
458+ set moduleId = !moduleSettingValue!
451459
452- call :DoModuleInstall " !moduleId! " " !moduleDirPath! " " Esternal" errors
453- if " !moduleInstallErrors! " NEQ " " set success = false
460+ call :DoModuleInstall " !moduleId! " " !moduleDirPath! " " Esternal" errors
461+ if " !moduleInstallErrors! " NEQ " " set success = false
462+ )
463+ ) else (
464+ call " !utilsScript! " WriteLine " No external modules found" !color_mute!
454465 )
455- ) else (
456- call " !utilsScript! " WriteLine " No external modules found" !color_mute!
457466 )
458-
467+
459468 call " !utilsScript! " WriteLine
460469 call " !utilsScript! " WriteLine " Module setup Complete" " Green"
461470
0 commit comments