mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-23 01:20:11 +00:00
Enable updater for Tray builds
This commit is contained in:
parent
e78b4882b3
commit
e7d1693517
@ -184,6 +184,7 @@ func (ud *Updater) GetTag() (Tag, int, error) {
|
|||||||
return Tag{}, -1, nil
|
return Tag{}, -1, nil
|
||||||
}
|
}
|
||||||
url := fmt.Sprintf("%s/repo/%s/%s/tag/latest/%s", ud.url, ud.namespace, ud.name, ud.tag)
|
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)
|
req, _ := http.NewRequest("GET", url, nil)
|
||||||
resp, err := ud.httpClient.Do(req)
|
resp, err := ud.httpClient.Do(req)
|
||||||
defer ud.timeoutHandler()
|
defer ud.timeoutHandler()
|
||||||
@ -347,7 +348,11 @@ func getBuildName() string {
|
|||||||
if arch == "" {
|
if arch == "" {
|
||||||
return ""
|
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) {
|
func (ud *Updater) downloadInternal(assets *[]GHAsset, tag Tag) (applyUpdate ApplyUpdate, status int, err error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user