🎨 Updater

This commit is contained in:
Liang Ding 2022-09-20 10:31:19 +08:00
parent 1b05df7d8f
commit 8166eaf879
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -133,6 +133,10 @@ func getUpdatePkg() (downloadPkgURL, checksum string, err error) {
}
func downloadInstallPkg(pkgURL, checksum string) {
if "" == pkgURL || "" == checksum {
return
}
pkg := path.Base(pkgURL)
savePath := filepath.Join(util.TempDir, "install", pkg)
if gulu.File.IsExist(savePath) {