@@ -121,19 +121,15 @@ set appRootDirPath=!setupScriptDirPath!
121121:: The location of large packages that need to be downloaded (eg an AWS S3 bucket
122122:: name). This will be overwritten using the value from appsettings.json
123123REM set assetStorageUrl=https://codeproject-ai.s3.ca-central-1.amazonaws.com/server/assets/
124- REM set assetStorageUrl=https://codeproject-ai-bunny.b-cdn.net/server/assets/
125- set assetStorageUrl = https://www.codeproject.com/ai/download/server/assets/
124+ set assetStorageUrl = https://codeproject-ai-bunny.b-cdn.net/server/assets/
125+ REM set assetStorageUrl=https://www.codeproject.com/ai/download/server/assets/
126126
127127:: The name of the source directory (in development)
128128set srcDirName = src
129129
130130:: The name of the app directory (in docker)
131131set appDirName = app
132132
133- :: The name of the dir, within the current directory, where install assets will
134- :: be downloaded
135- set downloadDir = downloads
136-
137133:: The name of the dir holding the installed runtimes
138134set runtimesDir = runtimes
139135
@@ -142,6 +138,14 @@ set modulesDir=modules
142138set preInstalledModulesDir = preinstalled-modules
143139set externalModulesDir = CodeProject.AI-Modules
144140
141+ :: The name of the dir, relative to the root directory, containing the folder
142+ :: where downloaded assets will be cached
143+ set downloadDir = downloads
144+
145+ :: Name of the install assets folder. Downloads in <root>/downloads/modules/assets
146+ :: Module packages will be stored in <root>/downloads/modules/packages
147+ set assetsDir = assets
148+
145149:: The name of the dir holding downloaded models for the modules. NOTE: this is
146150:: not currently used, but here for future-proofing
147151set modelsDir = models
@@ -257,6 +261,7 @@ set preInstalledModulesDirPath=!rootDirPath!\!preInstalledModulesDir!
257261set externalModulesDirPath = !rootDirPath! \..\!externalModulesDir!
258262set modelsDirPath = !rootDirPath! \!modelsDir!
259263set downloadDirPath = !rootDirPath! \!downloadDir!
264+ set downloadModuleAssetsDirPath = !downloadDirPath! \!modulesDir! \!assetsDir!
260265set utilsScriptsDirPath = !appRootDirPath! \scripts
261266set installScriptsDirPath = !rootDirPath! \devops\install
262267set utilsScript = !utilsScriptsDirPath! \utils.bat
@@ -367,7 +372,7 @@ if "!jsonFileValue!" NEQ "" set assetStorageUrl=!jsonFileValue!
367372call " !utilsScript! " Write " Creating Directories..."
368373if not exist " !runtimesDirPath! \" mkdir " !runtimesDirPath! "
369374if not exist " !downloadDirPath! \" mkdir " !downloadDirPath! "
370- if not exist " !downloadDirPath! \ !modulesDir! \ " mkdir " !downloadDirPath! \ !modulesDir ! \"
375+ if not exist " !downloadModuleAssetsDirPath! \ " mkdir " !downloadModuleAssetsDirPath ! \"
371376if not exist " !downloadDirPath! \!modelsDir! \" mkdir " !downloadDirPath! \!modelsDir! \"
372377
373378call " !utilsScript! " WriteLine " done" " Green"
@@ -376,21 +381,22 @@ call "!utilsScript!" WriteLine ""
376381:: Output settings
377382if /i " %verbosity% " neq " quiet" (
378383 call " !utilsScript! " WriteLine
379- call " !utilsScript! " WriteLine " os, name, arch = !os! !os_name! !architecture! " !color_mute!
380- call " !utilsScript! " WriteLine " systemName, platform = !systemName! , !platform! " !color_mute!
381- call " !utilsScript! " WriteLine " edgeDevice = !edgeDevice! " !color_mute!
382- call " !utilsScript! " WriteLine " setupMode = !setupMode! " !color_mute!
383- call " !utilsScript! " WriteLine " executionEnvironment = !executionEnvironment! " !color_mute!
384- call " !utilsScript! " WriteLine " rootDirPath = !rootDirPath! " !color_mute!
385- call " !utilsScript! " WriteLine " appRootDirPath = !appRootDirPath! " !color_mute!
386- call " !utilsScript! " WriteLine " setupScriptDirPath = !setupScriptDirPath! " !color_mute!
387- call " !utilsScript! " WriteLine " utilsScriptsDirPath = !utilsScriptsDirPath! " !color_mute!
388- call " !utilsScript! " WriteLine " runtimesDirPath = !runtimesDirPath! " !color_mute!
389- call " !utilsScript! " WriteLine " modulesDirPath = !modulesDirPath! " !color_mute!
390- call " !utilsScript! " WriteLine " externalModulesDirPath = !externalModulesDirPath! " !color_mute!
391- call " !utilsScript! " WriteLine " modelsDirPath = !modelsDirPath! " !color_mute!
392- call " !utilsScript! " WriteLine " downloadDirPath = !downloadDirPath! " !color_mute!
393- call " !utilsScript! " WriteLine " assetStorageUrl = !assetStorageUrl! " !color_mute!
384+ call " !utilsScript! " WriteLine " os, name, arch = !os! !os_name! !architecture! " !color_mute!
385+ call " !utilsScript! " WriteLine " systemName, platform = !systemName! , !platform! " !color_mute!
386+ call " !utilsScript! " WriteLine " edgeDevice = !edgeDevice! " !color_mute!
387+ call " !utilsScript! " WriteLine " setupMode = !setupMode! " !color_mute!
388+ call " !utilsScript! " WriteLine " executionEnvironment = !executionEnvironment! " !color_mute!
389+ call " !utilsScript! " WriteLine " rootDirPath = !rootDirPath! " !color_mute!
390+ call " !utilsScript! " WriteLine " appRootDirPath = !appRootDirPath! " !color_mute!
391+ call " !utilsScript! " WriteLine " setupScriptDirPath = !setupScriptDirPath! " !color_mute!
392+ call " !utilsScript! " WriteLine " utilsScriptsDirPath = !utilsScriptsDirPath! " !color_mute!
393+ call " !utilsScript! " WriteLine " runtimesDirPath = !runtimesDirPath! " !color_mute!
394+ call " !utilsScript! " WriteLine " modulesDirPath = !modulesDirPath! " !color_mute!
395+ call " !utilsScript! " WriteLine " externalModulesDirPath = !externalModulesDirPath! " !color_mute!
396+ call " !utilsScript! " WriteLine " modelsDirPath = !modelsDirPath! " !color_mute!
397+ call " !utilsScript! " WriteLine " downloadDirPath = !downloadDirPath! " !color_mute!
398+ call " !utilsScript! " WriteLine " downloadModuleAssetsDirPath = !downloadModuleAssetsDirPath! " !color_mute!
399+ call " !utilsScript! " WriteLine " assetStorageUrl = !assetStorageUrl! " !color_mute!
394400 call " !utilsScript! " WriteLine
395401)
396402
0 commit comments