build: make zig wrapper support nightly builds

This commit is contained in:
CJ van den Berg 2024-12-21 20:55:03 +01:00
parent afca8a86bc
commit 77cae58aeb
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

4
zig
View file

@ -46,7 +46,9 @@ get_zig() {
mkdir -p "$ZIGDIR"
cd "$ZIGDIR"
TARBALL="https://ziglang.org/download/$VERSION/$ZIGVER.tar.xz"
if echo "$VERSION" | grep '\-dev\.' >&/dev/null; then
TARBALL="https://ziglang.org/builds/$ZIGVER.tar.xz"
fi
if [ ! -d "$ZIGVER" ]; then
curl "$TARBALL" | tar -xJ
fi