Skip to content

Commit

Permalink
Fix Zig download url (#718)
Browse files Browse the repository at this point in the history
* Update debug_linux.sh

* Update debug_windows.bat
  • Loading branch information
catmeow72 committed Sep 13, 2024
1 parent 51e0d55 commit cf6e9df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debug_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion debug_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf6e9df

Please sign in to comment.