From a833110f7454134f65caadbc935d8c2e06d4103b Mon Sep 17 00:00:00 2001 From: buck54321 Date: Wed, 28 Aug 2024 23:14:58 -0500 Subject: [PATCH] enforce cgo explicitly (#2938) --- client/cmd/bisonw-desktop/pkg/pkg-darwin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh b/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh index 2945ad8b53..0d9a106043 100755 --- a/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh +++ b/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh @@ -101,7 +101,7 @@ function build_targets() { mkdir -p "${APP_EXCE_DIR}" pushd .. - GOOS=${OS} GOARCH=${ARCH} go build -v -trimpath ${TAGS_DEXC:+-tags ${TAGS_DEXC}} -o "${APP_EXCE_DIR}/${APP_NAME}" -ldflags "${LDFLAGS_DEXC:-${LDFLAGS_BASE}}" + GOOS=${OS} GOARCH=${ARCH} CGO_ENABLED=1 go build -v -trimpath ${TAGS_DEXC:+-tags ${TAGS_DEXC}} -o "${APP_EXCE_DIR}/${APP_NAME}" -ldflags "${LDFLAGS_DEXC:-${LDFLAGS_BASE}}" popd ./create-dmg.sh \ @@ -120,7 +120,7 @@ function build_targets() { done } -TARGETS="darwin/amd64" # unable to build for darwin/arm64 on a darwin/amd64 machine. +TARGETS="darwin/amd64 darwin/arm64" FLAVOR="-tray" TAGS_DEXC="systray" prepare