From 8db3d8448105d405ef3831151f705eaf551b3189 Mon Sep 17 00:00:00 2001 From: buck54321 Date: Tue, 1 Oct 2024 21:56:08 -0500 Subject: [PATCH] fix filename flavor and enforce darwin cgo minver (#2941) --- client/cmd/bisonw-desktop/pkg/pkg-darwin.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh b/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh index eaeb56fec7..d3b25d610f 100755 --- a/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh +++ b/client/cmd/bisonw-desktop/pkg/pkg-darwin.sh @@ -43,6 +43,8 @@ function cleanup() { rm -rf "$APP_DIR" } +export MACOSX_DEPLOYMENT_TARGET=10.11.0 + function prepare() { # Remove the installers directories and recreate them. rm -rf "${INSTALLERS_DIR}" @@ -70,7 +72,7 @@ function prepare() { CFBundleVersion${BUILD_VER} CFBundleSignaturedexc CFBundleSupportedPlatformsMacOSX - LSMinimumSystemVersion10.11.0 + LSMinimumSystemVersion${MACOSX_DEPLOYMENT_TARGET} NSHighResolutionCapable NSRequiresAquaSystemAppearance NSSupportsAutomaticGraphicsSwitching @@ -94,14 +96,16 @@ function build_targets() { echo "Building .DMG click installer for ${OS}-${ARCH}" - TARGET_NAME="bisonw${FLAVOR}-${OS}-${ARCH}-v${VER}" + TARGET_NAME="bisonw-desktop-${OS}-${ARCH}-v${VER}" # Remove any existing executable if any. rm -rf "${APP_EXCE_DIR}" mkdir -p "${APP_EXCE_DIR}" + # Potentially want to run with CGO_CXXFLAGS="-mmacosx-version-min=10.11.0" + pushd .. - 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}}" + GOOS=${OS} GOARCH=${ARCH} CGO_ENABLED=1 go build -v -trimpath -o "${APP_EXCE_DIR}/${APP_NAME}" -ldflags "${LDFLAGS_DEXC:-${LDFLAGS_BASE}}" popd ./create-dmg.sh \ @@ -121,8 +125,6 @@ function build_targets() { } TARGETS="darwin/amd64 darwin/arm64" -FLAVOR="-tray" -TAGS_DEXC="systray" prepare build_targets cleanup