up
This commit is contained in:
@@ -9,8 +9,9 @@ APP_BUNDLE = $(APP_NAME).app
|
|||||||
|
|
||||||
GO = go
|
GO = go
|
||||||
CGO_ENABLED = 1
|
CGO_ENABLED = 1
|
||||||
|
SEMVER = 0.3.7
|
||||||
GIT_HASH = $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
|
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)
|
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
|
.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)/$(GUI_BIN) $(APP_BUNDLE)/Contents/MacOS/$(GUI_BIN)
|
||||||
cp $(BUILD_DIR)/$(DAEMON_BIN) $(APP_BUNDLE)/Contents/MacOS/$(DAEMON_BIN)
|
cp $(BUILD_DIR)/$(DAEMON_BIN) $(APP_BUNDLE)/Contents/MacOS/$(DAEMON_BIN)
|
||||||
cp resources/Info.plist $(APP_BUNDLE)/Contents/Info.plist
|
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 \
|
@if [ -f resources/icon.icns ]; then \
|
||||||
cp resources/icon.icns $(APP_BUNDLE)/Contents/Resources/icon.icns; \
|
cp resources/icon.icns $(APP_BUNDLE)/Contents/Resources/icon.icns; \
|
||||||
else echo " (no icon.icns found, skipping icon)"; fi
|
else echo " (no icon.icns found, skipping icon)"; fi
|
||||||
|
|||||||
@@ -24,9 +24,9 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.0.0</string>
|
<string>0.3.7</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1</string>
|
<string>0</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>11.0</string>
|
<string>11.0</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user