Skip to content

Commit 2c082a4

Browse files
committed
fix: Fixed updating
1 parent 99bd3f7 commit 2c082a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

updater_windows.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ func ForceUpdate() {
3838
}
3939

4040
for _, v := range releases {
41-
if strings.HasSuffix(*v.Name, fmt.Sprintf("-%s", config.VersionBranch)) {
41+
if strings.HasSuffix(*v.TagName, fmt.Sprintf("-%s", config.VersionBranch)) {
4242
UpdateWithRelease(*v.TagName)
4343
return
4444
}
4545
}
4646

47-
log.Println("Failed to find updates")
47+
log.Printf("Failed to find updates with branch %s\n", config.VersionBranch)
4848

4949
//Finding the installer
5050

@@ -53,6 +53,7 @@ func ForceUpdate() {
5353
func UpdateWithRelease(tag string) {
5454

5555
withReplacedSuffix, _ := strings.CutSuffix(tag, fmt.Sprintf("-%s", config.VersionBranch))
56+
5657
if withReplacedSuffix == BINARY_VERSION {
5758
return
5859
}

0 commit comments

Comments
 (0)