From b52db70015b7633d0b0d9d5c31da30319507a9a5 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 9 Jul 2026 10:48:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DWindows/Linux=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E7=BC=BA=E5=A4=B1onAppActive=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit onAppActive 仅在 dock_callback_darwin.go 中定义,导致非 darwin 平台 go vet/编译失败。在 dock_other.go 补充同名声明。 --- Makefile | 2 +- internal/ui/dock_other.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2118c91..1c5b5c0 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ GO = go CGO_ENABLED = 1 WINDRES ?= x86_64-w64-mingw32-windres MINGW_CC ?= x86_64-w64-mingw32-gcc -SEMVER ?= 0.6.1 +SEMVER ?= 0.6.2 GIT_HASH = $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown) VERSION = $(SEMVER)-$(GIT_HASH) LDFLAGS = -s -w -X lmvpn/internal/version.Version=$(VERSION) diff --git a/internal/ui/dock_other.go b/internal/ui/dock_other.go index 0e048dc..d0818d4 100644 --- a/internal/ui/dock_other.go +++ b/internal/ui/dock_other.go @@ -2,6 +2,8 @@ package ui +var onAppActive func() + func showDockIcon() {} func hideDockIcon() {}