added support for both Expand-Archive and unzip
@@ -14,10 +14,17 @@ powershell -command "(new-object System.Net.WebClient).DownloadFile('https://www
powershell -command "(new-object System.Net.WebClient).DownloadFile('https://www.sqlite.org/2018/sqlite-amalgamation-3240000.zip','sqlite-amalgamation.zip')"
:: Unzip zip files
+if "%1" == "use_unzip" (
+ unzip libodb-2.4.0.zip
+ unzip libodb-sqlite-2.4.0.zip
+ unzip sqlite-dll.zip
+ unzip sqlite-amalgamation.zip
+) ELSE (
powershell -command "Expand-Archive libodb-2.4.0.zip ."
powershell -command "Expand-Archive libodb-sqlite-2.4.0.zip ."
powershell -command "Expand-Archive sqlite-dll.zip ."
powershell -command "Expand-Archive sqlite-amalgamation.zip ."
+)
:: Restructure directory
move libodb-sqlite-2.4.0\etc\sqlite .\
@@ -44,11 +51,10 @@ goto :eof
:help
echo Usage:
-echo install_dependencies.bat
+echo install_dependencies.bat installs using powershell(>=5.0) commands to unzip
+echo install_dependencies.bat use_unzip use GNU32 unzip utility to unzip files
+echo install_dependencies.bat /? displays help
echo.
echo it downloads the given dependencies:
echo - odb common runtime library libodb-2.4.0
echo - odb sqlite runtime library libodb-sqlite-2.4.0
-echo.
-echo Requires powershell version >= 5
-
