Skip to content

Commit 770d430

Browse files
authored
Update updates.go
1 parent 0b68736 commit 770d430

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apiv2/updates.go

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ func checkForUpdate() (string, error) {
3535

3636
func downloadUpdate(version string) error {
3737
downloadURL := fmt.Sprintf("%s/%s/releases/download/%s/%s_%s", updatesBaseURL, appName, version, appName, runtime.GOOS)
38+
if runtime.GOOS == "windows" {
39+
// windows-only extension
40+
downloadURL += ".exe"
41+
}
3842
resp, err := http.Get(downloadURL)
3943
if err != nil {
4044
return err

0 commit comments

Comments
 (0)