fix: architecture on macos arm
This commit is contained in:
parent
42b7ad7c5c
commit
d0af97d72c
1 changed files with 6 additions and 2 deletions
8
zig
8
zig
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue