Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 2cb0900

Browse files
authored
.tar.gz PowerShell issues fix. (#373)
1 parent a33e074 commit 2cb0900

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ set "URL=%URL%.tar.gz"
4848
echo Downloading Nitro from: %URL%
4949
powershell -Command "Invoke-WebRequest -OutFile '%TEMP%\nitro.tar.gz' '%URL%'"
5050
echo Extracting Nitro...
51-
powershell -Command "Expand-Archive -Path '%TEMP%\nitro.tar.gz' -DestinationPath '%APPDATA%\nitro'"
51+
powershell -Command "mkdir '%APPDATA%\nitro'"
52+
powershell -Command "tar -zxvf '%TEMP%\nitro.tar.gz' -C '%APPDATA%\nitro'"
5253

5354
:: Add nitro to the PATH
5455
setx PATH "%APPDATA%\nitro;%PATH%"
@@ -61,4 +62,4 @@ echo rmdir /S /Q "%APPDATA%\nitro" >> "%APPDATA%\nitro\uninstallnitro.bat"
6162
:: Clean up
6263
del %TEMP%\nitro.tar.gz
6364

64-
endlocal
65+
endlocal

0 commit comments

Comments
 (0)