From 4108adf1f7231a82fad90dbc402607cd8f368885 Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 7 Jul 2026 19:57:33 +0800 Subject: [PATCH] up --- Makefile | 6 +++++- resources/Info.plist | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e9a1d74..3fb1aa1 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,9 @@ APP_BUNDLE = $(APP_NAME).app GO = go CGO_ENABLED = 1 +SEMVER = 0.3.7 GIT_HASH = $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown) -VERSION = 0.3.7-$(GIT_HASH) +VERSION = $(SEMVER)-$(GIT_HASH) LDFLAGS = -s -w -X lmvpn/internal/version.Version=$(VERSION) .PHONY: all build app run daemon clean vet tidy fmt icon icon-windows build-windows installer-windows @@ -32,6 +33,9 @@ app: build cp $(BUILD_DIR)/$(GUI_BIN) $(APP_BUNDLE)/Contents/MacOS/$(GUI_BIN) cp $(BUILD_DIR)/$(DAEMON_BIN) $(APP_BUNDLE)/Contents/MacOS/$(DAEMON_BIN) cp resources/Info.plist $(APP_BUNDLE)/Contents/Info.plist + /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $(SEMVER)" \ + -c "Set :CFBundleVersion $(GIT_HASH)" \ + $(APP_BUNDLE)/Contents/Info.plist @if [ -f resources/icon.icns ]; then \ cp resources/icon.icns $(APP_BUNDLE)/Contents/Resources/icon.icns; \ else echo " (no icon.icns found, skipping icon)"; fi diff --git a/resources/Info.plist b/resources/Info.plist index 8b2bb84..78fa5dc 100644 --- a/resources/Info.plist +++ b/resources/Info.plist @@ -24,9 +24,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0.0 + 0.3.7 CFBundleVersion - 1 + 0 LSMinimumSystemVersion 11.0 NSHighResolutionCapable