mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 03:06:55 -04:00
Pull zig from a github repo instead of relying on ziglang.org, this should be more stable.
fixes #719
This commit is contained in:
parent
cf6e9df663
commit
8987dc4eb0
@ -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/download/$BASE_VERSION/"$VERSION".tar.xz
|
||||
wget -O compiler/archive.tar.xz https://github.com/PixelGuys/Cubyz-zig-versions/releases/download/$BASE_VERSION/"$VERSION".tar.xz
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
echo "Failed to download the Zig compiler."
|
||||
|
@ -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/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 (
|
||||
echo Failed to download the Zig compiler.
|
||||
exit /b 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user