删除更新的临时压缩包

This commit is contained in:
2025-10-30 19:35:21 +08:00
parent d3f3687201
commit 84723248cd

View File

@@ -65,7 +65,7 @@ func (s *sSystem) Update(ctx context.Context, gzFile string) (err error) {
gzFile = path.Join("download", platform+".gz")
}
//结束后删除压缩包
//defer gfile.RemoveFile(gzFile)
defer gfile.RemoveFile(gzFile)
ext := gfile.Ext(gzFile)
if ext == ".zip" {