@@ -344,44 +344,47 @@ function createPackage {
344344 rm -Rf $PKG_OFROOT /tutorials
345345
346346 RELEASE=" ${RELEASE:- latest} "
347+ # for now we force latest as we don't have releases in Apothecary for RC etc
348+ # prob should have a way to detect if the release exists and if it doesn't downgrade to latest
349+ LIBS_VERSION=latest
347350
348351 cd $PKG_OFROOT /
349352 echo " Location: {$PKG_OFROOT }"
350353 if [ " $PKG_PLATFORM " = " osx" ]; then
351- scripts/osx/download_libs.sh -t $RELEASE
352- scripts/emscripten/download_libs.sh -n -t $RELEASE
354+ scripts/osx/download_libs.sh -t $LIBS_VERSION
355+ scripts/emscripten/download_libs.sh -n -t $LIBS_VERSION
353356 elif [ " $PKG_PLATFORM " = " linux64" ]; then
354357 scripts/linux/download_libs.sh -a 64$LIBS_ABI
355- scripts/emscripten/download_libs.sh -n -t $RELEASE
358+ scripts/emscripten/download_libs.sh -n -t $LIBS_VERSION
356359 elif [ " $PKG_PLATFORM " = " linuxarmv6l" ]; then
357- scripts/linux/download_libs.sh -a armv6l -t $RELEASE
360+ scripts/linux/download_libs.sh -a armv6l -t $LIBS_VERSION
358361 elif [ " $PKG_PLATFORM " = " linuxarmv7l" ]; then
359- scripts/linux/download_libs.sh -a armv7l -t $RELEASE
362+ scripts/linux/download_libs.sh -a armv7l -t $LIBS_VERSION
360363 elif [ " $PKG_PLATFORM " = " linuxaarch64" ]; then
361- scripts/linux/download_libs.sh -a aarch64 -t $RELEASE
364+ scripts/linux/download_libs.sh -a aarch64 -t $LIBS_VERSION
362365 elif [ " $PKG_PLATFORM " = " msys2" ]; then
363- scripts/msys2/download_libs.sh -a $LIBS_ABI -t $RELEASE
364- scripts/emscripten/download_libs.sh -n -t $RELEASE
366+ scripts/msys2/download_libs.sh -a $LIBS_ABI -t $LIBS_VERSION
367+ scripts/emscripten/download_libs.sh -n -t $LIBS_VERSION
365368 elif [ " $PKG_PLATFORM " = " vs2019" ]; then
366- scripts/vs/download_libs.sh -a $LIBS_ABI -t $RELEASE
367- scripts/emscripten/download_libs.sh -n -t $RELEASE
369+ scripts/vs/download_libs.sh -a $LIBS_ABI -t $LIBS_VERSION
370+ scripts/emscripten/download_libs.sh -n -t $LIBS_VERSION
368371 elif [ " $PKG_PLATFORM " = " vs" ]; then
369372 if [ " $LIBS_ABI " = " " ]; then
370- scripts/vs/download_libs_2019_x64.sh -t $RELEASE
373+ scripts/vs/download_libs_2019_x64.sh -t $LIBS_VERSION
371374 else
372- scripts/vs/download_libs.sh -a $LIBS_ABI -t $RELEASE
375+ scripts/vs/download_libs.sh -a $LIBS_ABI -t $LIBS_VERSION
373376 fi
374- scripts/emscripten/download_libs.sh -n -t $RELEASE
377+ scripts/emscripten/download_libs.sh -n -t $LIBS_VERSION
375378 elif [ " $PKG_PLATFORM " = " android" ]; then
376- scripts/android/download_libs.sh -t $RELEASE
379+ scripts/android/download_libs.sh -t $LIBS_VERSION
377380 elif [ " $PKG_PLATFORM " = " ios" ]; then
378- scripts/macos/download_libs.sh -t $RELEASE
381+ scripts/macos/download_libs.sh -t $LIBS_VERSION
379382 elif [ " $PKG_PLATFORM " = " emscripten" ]; then
380- scripts/emscripten/download_libs.sh -n -t $RELEASE
383+ scripts/emscripten/download_libs.sh -n -t $LIBS_VERSION
381384 elif [ " $PKG_PLATFORM " = " macos" ]; then
382- scripts/osx/download_libs.sh -t $RELEASE
383- scripts/macos/download_libs.sh -t $RELEASE
384- scripts/emscripten/download_libs.sh -n -t $RELEASE
385+ scripts/osx/download_libs.sh -t $LIBS_VERSION
386+ scripts/macos/download_libs.sh -t $LIBS_VERSION
387+ scripts/emscripten/download_libs.sh -n -t $LIBS_VERSION
385388 fi
386389
387390 createProjectFiles $PKG_PLATFORM $PKG_OFROOT
0 commit comments