mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-09-08 03:29:48 -04:00
Use tar in the windows script, hopefully it's more stable than Expand-Archive.
should fix #1015 also removed spaces before "..."
This commit is contained in:
parent
07be80d418
commit
801f67408f
@ -26,16 +26,16 @@ set /p currVersion=<"compiler\version.txt"
|
|||||||
|
|
||||||
if not "%version%" == "%currVersion%" (
|
if not "%version%" == "%currVersion%" (
|
||||||
echo Your Zig is the wrong version.
|
echo Your Zig is the wrong version.
|
||||||
echo Deleting current Zig installation ...
|
echo Deleting current Zig installation...
|
||||||
if exist compiler\zig rmdir /s /q compiler\zig
|
if exist compiler\zig rmdir /s /q compiler\zig
|
||||||
echo Downloading %version% ...
|
echo Downloading %version%...
|
||||||
powershell -Command $ProgressPreference = 'SilentlyContinue'; "Invoke-WebRequest -uri https://github.com/PixelGuys/Cubyz-zig-versions/releases/download/%baseVersion%/%version%.zip -OutFile compiler\archive.zip"
|
powershell -Command $ProgressPreference = 'SilentlyContinue'; "Invoke-WebRequest -uri https://github.com/PixelGuys/Cubyz-zig-versions/releases/download/%baseVersion%/%version%.zip -OutFile compiler\archive.zip"
|
||||||
if errorlevel 1 (
|
if errorlevel 1 (
|
||||||
echo Failed to download the Zig compiler.
|
echo Failed to download the Zig compiler.
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
echo Extracting zip file ...
|
echo Extracting zip file...
|
||||||
powershell $ProgressPreference = 'SilentlyContinue'; Expand-Archive compiler\archive.zip -DestinationPath compiler
|
tar -xf compiler\archive.zip --directory compiler
|
||||||
ren compiler\%version% zig
|
ren compiler\%version% zig
|
||||||
del compiler\archive.zip
|
del compiler\archive.zip
|
||||||
echo %version%> compiler\version.txt
|
echo %version%> compiler\version.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user