Skip to content

Commit

Permalink
enforce cgo explicitly (#2938)
Browse files Browse the repository at this point in the history
  • Loading branch information
buck54321 committed Aug 29, 2024
1 parent d7f761d commit a833110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/cmd/bisonw-desktop/pkg/pkg-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit a833110

Please sign in to comment.