From e7d1693517de81a5e0b33493ab2b211e01edea45 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 23 May 2021 23:20:14 +0100 Subject: [PATCH] Enable updater for Tray builds --- updater.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/updater.go b/updater.go index c856d1f..c3b45a8 100644 --- a/updater.go +++ b/updater.go @@ -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() @@ -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) {