fix zig wrapper on macos
This commit is contained in:
parent
acec3e78ab
commit
0b0200aecc
1 changed files with 11 additions and 1 deletions
12
zig
12
zig
|
@ -6,7 +6,17 @@ ARCH=$(uname -m)
|
||||||
BASEDIR="$(cd "$(dirname "$0")" && pwd)"
|
BASEDIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
ZIGDIR=$BASEDIR/.cache/zig
|
ZIGDIR=$BASEDIR/.cache/zig
|
||||||
VERSION=$(< build.zig.version)
|
VERSION=$(< build.zig.version)
|
||||||
ZIGVER="zig-linux-$ARCH-$VERSION"
|
|
||||||
|
OS=$(uname)
|
||||||
|
|
||||||
|
if [ "$OS" == "Linux" ] ; then
|
||||||
|
OS=linux
|
||||||
|
elif [ "$OS" == "Darwin" ] ; then
|
||||||
|
OS=macos
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
ZIGVER="zig-$OS-$ARCH-$VERSION"
|
||||||
ZIG=$ZIGDIR/$ZIGVER/zig
|
ZIG=$ZIGDIR/$ZIGVER/zig
|
||||||
|
|
||||||
if [ "$1" == "update" ] ; then
|
if [ "$1" == "update" ] ; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue