@@ -37,9 +37,8 @@ set dotNetTarget=net8.0
3737
3838:: Basic locations
3939
40- :: The name of the dir, within the current directory, where install assets will
41- :: be downloaded
42- set downloadDir = downloads
40+ :: The name of the dir, within the root directory, where packages will be stored
41+ set packageDir = \downloads\modules\packages
4342
4443:: The name of the dir holding the source code
4544set srcDir = src
@@ -102,7 +101,11 @@ set utilsScript=!utilsScriptsDirPath!\utils.bat
102101:: The location of directories relative to the root of the solution directory
103102set modulesDirPath = !rootDirPath! \!modulesDir!
104103set externalModulesDirPath = !rootDirPath! \..\!externalModulesDir!
105- set downloadDirPath = !rootDirPath! \!downloadDir!
104+ set packageDirPath = !rootDirPath! \!packageDir!
105+
106+ if [ ! -d " ${packageDirPath}" ]; then mkdir -p " ${packageDirPath}" ; fi
107+ if not exist " !packageDirPath! " mkdir " !packageDirPath! "
108+
106109
107110:: Let's go
108111if /i " !useColor! " == " true" call " !utilsScript! " setESC
@@ -241,8 +244,8 @@ REM Creates a package for a module
241244
242245 rem Move package into modules download cache
243246
244- rem echo Moving !packageModuleDirPath!\!packageModuleId!-!version!.zip to !downloadDirPath!\!modulesDir !\
245- move /Y !packageModuleDirPath! \!packageModuleId! -!packageVersion! .zip !downloadDirPath! \ !modulesDir ! \ > NUL
247+ rem echo Moving !packageModuleDirPath!\!packageModuleId!-!version!.zip to !packageDirPath !\
248+ move /Y !packageModuleDirPath! \!packageModuleId! -!packageVersion! .zip !packageDirPath ! \ > NUL
246249
247250 if errorlevel 1 (
248251 call " !utilsScript! " WriteLine " Error" " Red"
0 commit comments