Fix Zig download url (#718)

* Update debug_linux.sh

* Update debug_windows.bat
This commit is contained in:
Zachary Hall 2024-09-13 13:04:15 -07:00 committed by GitHub
parent 51e0d55a0c
commit cf6e9df663
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ if [[ "$CURRENT_VERSION" != "$VERSION" ]]; then
rm -r compiler/zig rm -r compiler/zig
mkdir compiler/zig mkdir compiler/zig
echo "Downloading $VERSION..." 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 ] if [ $? != 0 ]
then then
echo "Failed to download the Zig compiler." echo "Failed to download the Zig compiler."

View File

@ -29,7 +29,7 @@ if not "%version%" == "%currVersion%" (
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://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 ( if errorlevel 1 (
echo Failed to download the Zig compiler. echo Failed to download the Zig compiler.
exit /b 1 exit /b 1