更新不同系统的解压方式,区分zip与gzip

This commit is contained in:
2025-10-30 17:47:28 +08:00
parent 42404bb8e5
commit 607af816c4
3 changed files with 20 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ import (
type (
ISystem interface {
Init()
Update(ctx context.Context) (err error)
Update(ctx context.Context, gzFile string) (err error)
// RestartSelf 实现 Windows 平台下的程序自重启
RestartSelf() error
// RenameRunningFile 重命名正在运行的程序文件(如 message.exe → message.exe~