From 801f67408f8a62207484545947f8e7dff2d700ca Mon Sep 17 00:00:00 2001 From: IntegratedQuantum Date: Fri, 7 Feb 2025 20:36:15 +0100 Subject: [PATCH] Use tar in the windows script, hopefully it's more stable than Expand-Archive. should fix #1015 also removed spaces before "..." --- debug_windows.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debug_windows.bat b/debug_windows.bat index ee4f9e12..73de3f27 100644 --- a/debug_windows.bat +++ b/debug_windows.bat @@ -26,16 +26,16 @@ set /p currVersion=<"compiler\version.txt" if not "%version%" == "%currVersion%" ( 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 - 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" if errorlevel 1 ( echo Failed to download the Zig compiler. exit /b 1 ) - echo Extracting zip file ... - powershell $ProgressPreference = 'SilentlyContinue'; Expand-Archive compiler\archive.zip -DestinationPath compiler + echo Extracting zip file... + tar -xf compiler\archive.zip --directory compiler ren compiler\%version% zig del compiler\archive.zip echo %version%> compiler\version.txt