diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a4dab0..c33989d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog EMLy +## 1.6.0 (2026-02-17) +1) Implementazione in sviluppo del sistema di aggiornamento automatico e manuale, con supporto per canali di rilascio (stable/beta) e gestione delle versioni. (Ancora non attivo di default, in fase di test) + ## 1.5.5 (2026-02-14) 1) Aggiunto il supporto al caricamento dei bug report su un server esterno, per facilitare la raccolta e gestione dei report da parte degli sviluppatori. (Con fallback locale in caso di errore) 2) Aggiunto il supporto alle mail con formato TNEF/winmail.dat, per estrarre gli allegati correttamente. diff --git a/app_update.go b/app_update.go index f1659b6..f5398ee 100644 --- a/app_update.go +++ b/app_update.go @@ -81,15 +81,11 @@ func (a *App) CheckForUpdates() (UpdateStatus, error) { updateStatus.LastCheckTime = time.Now().Format("2006-01-02 15:04:05") runtime.EventsEmit(a.ctx, "update:status", updateStatus) - defer func() { - updateStatus.Checking = false - runtime.EventsEmit(a.ctx, "update:status", updateStatus) - }() - // Get current version from config config := a.GetConfig() if config == nil { updateStatus.ErrorMessage = "Failed to load configuration" + updateStatus.Checking = false return updateStatus, fmt.Errorf("failed to load config") } @@ -99,6 +95,7 @@ func (a *App) CheckForUpdates() (UpdateStatus, error) { // Check if updates are enabled if config.EMLy.UpdateCheckEnabled != "true" { updateStatus.ErrorMessage = "Update checking is disabled" + updateStatus.Checking = false return updateStatus, fmt.Errorf("update checking is disabled in config") } @@ -106,6 +103,7 @@ func (a *App) CheckForUpdates() (UpdateStatus, error) { updatePath := strings.TrimSpace(config.EMLy.UpdatePath) if updatePath == "" { updateStatus.ErrorMessage = "Update path not configured" + updateStatus.Checking = false return updateStatus, fmt.Errorf("UPDATE_PATH is empty in config.ini") } @@ -113,6 +111,7 @@ func (a *App) CheckForUpdates() (UpdateStatus, error) { manifest, err := a.loadUpdateManifest(updatePath) if err != nil { updateStatus.ErrorMessage = fmt.Sprintf("Failed to load manifest: %v", err) + updateStatus.Checking = false return updateStatus, err } @@ -150,6 +149,7 @@ func (a *App) CheckForUpdates() (UpdateStatus, error) { updateStatus.CurrentVersion, currentChannel) } + updateStatus.Checking = false return updateStatus, nil } diff --git a/config.ini b/config.ini index fa84ec1..a9a8b84 100644 --- a/config.ini +++ b/config.ini @@ -1,11 +1,11 @@ [EMLy] -SDK_DECODER_SEMVER = 1.4.1 +SDK_DECODER_SEMVER = 1.4.2 SDK_DECODER_RELEASE_CHANNEL = beta -GUI_SEMVER = 1.5.5 +GUI_SEMVER = 1.6.0 GUI_RELEASE_CHANNEL = beta LANGUAGE = it UPDATE_CHECK_ENABLED = false UPDATE_PATH = UPDATE_AUTO_CHECK = false -BUGREPORT_API_URL = "https://emly-api.lyzcoote.cloud" +BUGREPORT_API_URL = "https://api.emly.ffois.it" BUGREPORT_API_KEY = "emly_1BaQdBknsMGcY5DynSby71JnWOKXtJvnuUprkgWT0pujpLFxj5HaTXP9vtJAMk63" \ No newline at end of file diff --git a/installer/installer.iss b/installer/installer.iss index 18a2cdf..348ae58 100644 --- a/installer/installer.iss +++ b/installer/installer.iss @@ -1,6 +1,6 @@ #define ApplicationName 'EMLy' #define ApplicationVersion GetVersionNumbersString('EMLy.exe') -#define ApplicationVersion '1.5.4_beta' +#define ApplicationVersion '1.6.0_beta' [Languages] Name: "english"; MessagesFile: "compiler:Default.isl"