This commit is contained in:
2025-07-24 12:06:09 -07:00
parent 4e22ca8714
commit 49b696c898
4 changed files with 7 additions and 26 deletions

View File

@@ -11,19 +11,19 @@ import (
"strings"
)
var appVersion = semver.MustParse("1.0.1")
const appVersion = "1.0.3"
func main() {
log.SetupLogging()
PEApp := app.NewWithID("com.burkey.epochsilicon")
PEWindow := PEApp.NewWindow("EpochSilicon v" + appVersion.String())
PEWindow := PEApp.NewWindow("EpochSilicon v" + appVersion)
PEWindow.Resize(fyne.NewSize(650, 500))
PEWindow.SetFixedSize(true)
go func() {
prefs, _ := utils.LoadPrefs()
updateInfo, updateAvailable, err := utils.CheckForUpdateWithAssets(appVersion)
updateInfo, updateAvailable, err := utils.CheckForUpdateWithAssets(semver.MustParse(appVersion))
if err != nil {
log.Debugf("Failed to check for updates: %v", err)
return
@@ -44,7 +44,7 @@ func main() {
}
// Show enhanced update dialog
ui.ShowUpdateDialog(updateInfo, appVersion.String(), PEWindow)
ui.ShowUpdateDialog(updateInfo, appVersion, PEWindow)
}()
content := ui.CreateUI(PEWindow)