迁移到 mygo 单进程架构并接入签名自更新

- 单进程:托盘常驻 + 原生设置窗口(internal/settings),移除 Wails 前端与 IPC
- 触发器(鼠标角落 / 边缘滚轮 / 热键)+ 规则引擎 + 动作注册表
- 调节提示条:截屏 + glass.Blur 三层毛玻璃、背景跟随屏幕变化、悬停光感与拖动
- 音量 Core Audio COM、亮度 DDC/CI(gamma 兜底)、多显示器求平均
- 配置热重载 + 版本迁移 v1→v5、便携模式、崩溃取证三件套
- updater/native 插件 + 托盘「检查更新…」,watchdog 识别更新重启
- 自建 Gitea 发布:scripts/publish-gitea.ps1(updates.url 指向 latest Release)
This commit is contained in:
zerorigin committed 2026-11-16 10:31:44 +08:00
1 parent 814012ec52
commit 0b8b9b0775
202 files changed
+7254 -13572

No files matched your search

+5 -5
View File
@@ -28,7 +28,7 @@ var (
heartbeatPsapi = syscall.NewLazyDLL("psapi.dll")
procGetProcessMemoryInfo = heartbeatPsapi.NewProc("GetProcessMemoryInfo")
heartbeatKernel32 = syscall.NewLazyDLL("kernel32.dll")
heartbeatKernel32 = syscall.NewLazyDLL("kernel32.dll")
procGetCurrentProcess = heartbeatKernel32.NewProc("GetCurrentProcess")
)
@@ -63,10 +63,10 @@ func SelfWorkingSetMB() int64 {
// heartbeatEntry 为心跳文件内容(JSON,便于后续脚本分析)。
type heartbeatEntry struct {
PID int `json:"pid"`
TS string `json:"ts"`
UptimeS int64 `json:"uptime_s"`
MemMB int64 `json:"mem_mb"`
PID int `json:"pid"`
TS string `json:"ts"`
UptimeS int64 `json:"uptime_s"`
MemMB int64 `json:"mem_mb"`
}
// StartHeartbeat 启动心跳 goroutine:interval 周期写心跳文件,超过