1.0.0
This commit is contained in:
@@ -114,8 +114,10 @@ func ShowUpdateDialog(updateInfo *utils.UpdateInfo, currentVersion string, myWin
|
||||
return
|
||||
}
|
||||
|
||||
progressLabel.SetText("Installing update...")
|
||||
progressBar.SetValue(1.0)
|
||||
fyne.DoAndWait(func() {
|
||||
progressLabel.SetText("Installing update...")
|
||||
progressBar.SetValue(1.0)
|
||||
})
|
||||
|
||||
// Install update
|
||||
err = utils.InstallUpdate(downloadPath)
|
||||
@@ -124,14 +126,18 @@ func ShowUpdateDialog(updateInfo *utils.UpdateInfo, currentVersion string, myWin
|
||||
debug.Printf("Installation failed: %v", err)
|
||||
|
||||
// Re-enable close button
|
||||
d.SetButtons([]fyne.CanvasObject{
|
||||
widget.NewButton("Close", func() { d.Hide() }),
|
||||
fyne.DoAndWait(func() {
|
||||
d.SetButtons([]fyne.CanvasObject{
|
||||
widget.NewButton("Close", func() { d.Hide() }),
|
||||
})
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
// Success - show restart dialog
|
||||
progressLabel.SetText("Update installed successfully!")
|
||||
fyne.DoAndWait(func() {
|
||||
progressLabel.SetText("Update installed successfully!")
|
||||
})
|
||||
|
||||
restartDialog := dialog.NewConfirm(
|
||||
"Update Complete",
|
||||
|
@@ -163,7 +163,7 @@ type Asset struct {
|
||||
|
||||
// CheckForUpdateWithAssets returns update information including download assets
|
||||
func CheckForUpdateWithAssets(currentVersion string) (*UpdateInfo, bool, error) {
|
||||
resp, err := http.Get("https://api.github.com/repos/tairasu/EpochSilicon/releases/latest")
|
||||
resp, err := http.Get("https://git.burkey.co/api/v1/repos/eburk/epochsilicon/releases/latest")
|
||||
if err != nil {
|
||||
return nil, false, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user