From fa75643c1bd15e6b8b7d4aa13d77766c3a89e65d Mon Sep 17 00:00:00 2001 From: Mauro Druwel Date: Tue, 23 Jan 2024 19:55:58 +0100 Subject: [PATCH 1/2] Update install.bat Update install.bat so there isn't a compatibility issue with the .tar.gz extension in powershell. --- install.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.bat b/install.bat index 2a17db9d0..42191dcdc 100644 --- a/install.bat +++ b/install.bat @@ -48,7 +48,7 @@ set "URL=%URL%.tar.gz" echo Downloading Nitro from: %URL% powershell -Command "Invoke-WebRequest -OutFile '%TEMP%\nitro.tar.gz' '%URL%'" echo Extracting Nitro... -powershell -Command "Expand-Archive -Path '%TEMP%\nitro.tar.gz' -DestinationPath '%APPDATA%\nitro'" +powershell -Command "mkdir "%APPDATA%\nitro" | tar -zxvf '%TEMP%\nitro.tar.gz' -DestinationPath '%APPDATA%\nitro'" :: Add nitro to the PATH setx PATH "%APPDATA%\nitro;%PATH%" From 7a435f860228a358e0ac944373e92b644b8cd588 Mon Sep 17 00:00:00 2001 From: Mauro Druwel <46003176+MauroDruwel@users.noreply.github.com> Date: Sat, 3 Feb 2024 12:04:44 +0100 Subject: [PATCH 2/2] Update install.bat --- install.bat | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.bat b/install.bat index 42191dcdc..4c4ffe085 100644 --- a/install.bat +++ b/install.bat @@ -48,7 +48,8 @@ set "URL=%URL%.tar.gz" echo Downloading Nitro from: %URL% powershell -Command "Invoke-WebRequest -OutFile '%TEMP%\nitro.tar.gz' '%URL%'" echo Extracting Nitro... -powershell -Command "mkdir "%APPDATA%\nitro" | tar -zxvf '%TEMP%\nitro.tar.gz' -DestinationPath '%APPDATA%\nitro'" +powershell -Command "mkdir '%APPDATA%\nitro'" +powershell -Command "tar -zxvf '%TEMP%\nitro.tar.gz' -C '%APPDATA%\nitro'" :: Add nitro to the PATH setx PATH "%APPDATA%\nitro;%PATH%" @@ -61,4 +62,4 @@ echo rmdir /S /Q "%APPDATA%\nitro" >> "%APPDATA%\nitro\uninstallnitro.bat" :: Clean up del %TEMP%\nitro.tar.gz -endlocal \ No newline at end of file +endlocal