From cf6e9df663face9ee7e29d5e5f265bcaf6258ce1 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Fri, 13 Sep 2024 13:04:15 -0700 Subject: [PATCH] Fix Zig download url (#718) * Update debug_linux.sh * Update debug_windows.bat --- debug_linux.sh | 2 +- debug_windows.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debug_linux.sh b/debug_linux.sh index 9f51d4fc..61a0e898 100755 --- a/debug_linux.sh +++ b/debug_linux.sh @@ -48,7 +48,7 @@ if [[ "$CURRENT_VERSION" != "$VERSION" ]]; then rm -r compiler/zig mkdir compiler/zig echo "Downloading $VERSION..." - wget -O compiler/archive.tar.xz https://ziglang.org/builds/"$VERSION".tar.xz + wget -O compiler/archive.tar.xz https://ziglang.org/download/$BASE_VERSION/"$VERSION".tar.xz if [ $? != 0 ] then echo "Failed to download the Zig compiler." diff --git a/debug_windows.bat b/debug_windows.bat index 28302074..02ce4f29 100644 --- a/debug_windows.bat +++ b/debug_windows.bat @@ -29,7 +29,7 @@ if not "%version%" == "%currVersion%" ( echo Deleting current Zig installation ... if exist compiler\zig rmdir /s /q compiler\zig echo Downloading %version% ... - powershell -Command $ProgressPreference = 'SilentlyContinue'; "Invoke-WebRequest -uri https://ziglang.org/builds/%version%.zip -OutFile compiler\archive.zip" + powershell -Command $ProgressPreference = 'SilentlyContinue'; "Invoke-WebRequest -uri https://ziglang.org/download/%baseVersion%/%version%.zip -OutFile compiler\archive.zip" if errorlevel 1 ( echo Failed to download the Zig compiler. exit /b 1