mirror of
https://github.com/ayflying/p2p.git
synced 2026-03-04 17:29:22 +00:00
更新不同系统的解压方式,区分zip与gzip
This commit is contained in:
@@ -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~)
|
||||
|
||||
Reference in New Issue
Block a user