@@ -23,6 +23,9 @@ set useJq=false
2323:: This saves time to allow for quick packaging of the easier, non-compiled modules
2424set includeDotNet = true
2525
26+ :: Sometimes we want to skip this one because it's long and painful
27+ set doODNet = true
28+
2629:: Width of lines
2730set lineWidth = 70
2831
@@ -215,15 +218,34 @@ REM Creates a package for a module
215218
216219 if exist " !packageModuleDirPath! \package.bat" (
217220
221+ set isDotNet = false
222+
223+ if /i " !packageModuleId! " == " ObjectDetectionYOLOv5Net" set isDotNet = true
224+ if /i " !packageModuleId! " == " PortraitFilter" set isDotNet = true
225+ if /i " !packageModuleId! " == " SentimentAnalysis" set isDotNet = true
226+
218227 set doPackage = true
219228
220- if " !includeDotNet! " == " false" if /i " !packageModuleId! " == " ObjectDetectionYOLOv5Net" set doPackage = false
221- if " !includeDotNet! " == " false" if /i " !packageModuleId! " == " PortraitFilter" set doPackage = false
222- if " !includeDotNet! " == " false" if /i " !packageModuleId! " == " SentimentAnalysis" set doPackage = false
229+ if " !isDotNet! " == " true" (
230+ if " !includeDotNet! " == " true" (
231+ if " !doODNet! " == " false" if /i " !packageModuleId! " == " ObjectDetectionYOLOv5Net" (
232+ set doPackage = false
233+ call " !utilsScript! " WriteLine " Skipping Object Detection .NET module !packageModuleId! ..." " Gray"
234+ )
235+ if " !doPackage! " == " true" (
236+ echo . > NUL
237+ REM Modules' package.bat will do the building. No need to do it here.
238+ REM pushd !packageModuleDirPath!
239+ REM dotnet build -c Release
240+ REM popd
241+ )
242+ ) else (
243+ set doPackage = false
244+ call " !utilsScript! " WriteLine " Skipping packaging .NET module !packageModuleId! ..." " Gray"
245+ )
246+ )
223247
224- if " !doPackage! " == " false" (
225- call " !utilsScript! " WriteLine " Skipping packaging .NET module !packageModuleId! ..." " Gray"
226- ) else (
248+ if " !doPackage! " == " true" (
227249 REM Read the version from the modulesettings.json file and then pass this
228250 REM version to the package.bat file.
229251 call " !utilsScript! " Write " Preparing !packageModuleId! ..."
0 commit comments