Skip to content

Commit

Permalink
Enable updater for Tray builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hrfee committed May 23, 2021
1 parent e78b488 commit e7d1693
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ func (ud *Updater) GetTag() (Tag, int, error) {
return Tag{}, -1, nil
}
url := fmt.Sprintf("%s/repo/%s/%s/tag/latest/%s", ud.url, ud.namespace, ud.name, ud.tag)
fmt.Println(url)
req, _ := http.NewRequest("GET", url, nil)
resp, err := ud.httpClient.Do(req)
defer ud.timeoutHandler()
Expand Down Expand Up @@ -347,7 +348,11 @@ func getBuildName() string {
if arch == "" {
return ""
}
return operatingSystem + "_" + arch
tray := ""
if TRAY {
tray = "TrayIcon_"
}
return tray + operatingSystem + "_" + arch
}

func (ud *Updater) downloadInternal(assets *[]GHAsset, tag Tag) (applyUpdate ApplyUpdate, status int, err error) {
Expand Down

0 comments on commit e7d1693

Please sign in to comment.