fix: architecture on macos arm

This commit is contained in:
CJ van den Berg 2024-02-29 22:50:37 +01:00
parent 42b7ad7c5c
commit d0af97d72c

8
zig
View file

@ -12,9 +12,13 @@ mkdir -p .cache/cdb
OS=$(uname) OS=$(uname)
if [ "$OS" == "Linux" ] ; then if [ "$OS" == "Linux" ] ; then
OS=linux OS=linux
elif [ "$OS" == "Darwin" ] ; then elif [ "$OS" == "Darwin" ] ; then
OS=macos OS=macos
fi
if [ "$ARCH" == "arm64" ] ; then
ARCH=aarch64
fi fi
ZIGVER="zig-$OS-$ARCH-$VERSION" ZIGVER="zig-$OS-$ARCH-$VERSION"