检查版本更新时增加当前版本参数

This commit is contained in:
GoEdgeLab
2023-03-12 21:24:08 +08:00
parent 034e8da212
commit e7dd05e433
4 changed files with 4 additions and 1 deletions

View File

@@ -108,6 +108,7 @@ func (this *UpgradeManager) Start() error {
}
url = strings.ReplaceAll(url, "${os}", osName)
url = strings.ReplaceAll(url, "${arch}", runtime.GOARCH)
url = strings.ReplaceAll(url, "${version}", teaconst.Version)
req, err := http.NewRequest(http.MethodGet, url, nil)
if err != nil {
return errors.New("create url request failed: " + err.Error())