From 4be566e0fe1a17b249c0887b2396223ca19ad547 Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Sat, 28 Oct 2023 10:13:21 +0700 Subject: [PATCH] More fixes for macOS in build-release.sh --- build-release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-release.sh b/build-release.sh index 68b514ce205..a89354cd3a3 100755 --- a/build-release.sh +++ b/build-release.sh @@ -181,7 +181,7 @@ echo "BUILD:" ) 2>&1 | log ' ' built_ver() { - if [[ "$ARCH" != "$GOARCH" ]]; then + if [[ "$PLATFORM" == "linux" && "$ARCH" != "$GOARCH" ]]; then EXTRA= if [ -d /usr/$LDARCH-linux-$GNUTYPE/libc ]; then EXTRA="-L /usr/$LDARCH-linux-$GNUTYPE/libc" @@ -190,6 +190,8 @@ built_ver() { -L /usr/$LDARCH-linux-$GNUTYPE \ $EXTRA \ $BIN --version + elif [[ "$PLATFORM" == "darwin" && "$ARCH" != "$GOARCH" ]]; then + echo "usql $VER" else $BIN --version fi