feat: update version to 1.6.0 and enhance update system configuration

This commit is contained in:
Flavio Fois
2026-02-17 11:21:26 +01:00
parent 6a27663e72
commit b106683712
4 changed files with 12 additions and 9 deletions

View File

@@ -1,5 +1,8 @@
# Changelog EMLy # 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.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) 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. 2) Aggiunto il supporto alle mail con formato TNEF/winmail.dat, per estrarre gli allegati correttamente.

View File

@@ -81,15 +81,11 @@ func (a *App) CheckForUpdates() (UpdateStatus, error) {
updateStatus.LastCheckTime = time.Now().Format("2006-01-02 15:04:05") updateStatus.LastCheckTime = time.Now().Format("2006-01-02 15:04:05")
runtime.EventsEmit(a.ctx, "update:status", updateStatus) runtime.EventsEmit(a.ctx, "update:status", updateStatus)
defer func() {
updateStatus.Checking = false
runtime.EventsEmit(a.ctx, "update:status", updateStatus)
}()
// Get current version from config // Get current version from config
config := a.GetConfig() config := a.GetConfig()
if config == nil { if config == nil {
updateStatus.ErrorMessage = "Failed to load configuration" updateStatus.ErrorMessage = "Failed to load configuration"
updateStatus.Checking = false
return updateStatus, fmt.Errorf("failed to load config") return updateStatus, fmt.Errorf("failed to load config")
} }
@@ -99,6 +95,7 @@ func (a *App) CheckForUpdates() (UpdateStatus, error) {
// Check if updates are enabled // Check if updates are enabled
if config.EMLy.UpdateCheckEnabled != "true" { if config.EMLy.UpdateCheckEnabled != "true" {
updateStatus.ErrorMessage = "Update checking is disabled" updateStatus.ErrorMessage = "Update checking is disabled"
updateStatus.Checking = false
return updateStatus, fmt.Errorf("update checking is disabled in config") 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) updatePath := strings.TrimSpace(config.EMLy.UpdatePath)
if updatePath == "" { if updatePath == "" {
updateStatus.ErrorMessage = "Update path not configured" updateStatus.ErrorMessage = "Update path not configured"
updateStatus.Checking = false
return updateStatus, fmt.Errorf("UPDATE_PATH is empty in config.ini") 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) manifest, err := a.loadUpdateManifest(updatePath)
if err != nil { if err != nil {
updateStatus.ErrorMessage = fmt.Sprintf("Failed to load manifest: %v", err) updateStatus.ErrorMessage = fmt.Sprintf("Failed to load manifest: %v", err)
updateStatus.Checking = false
return updateStatus, err return updateStatus, err
} }
@@ -150,6 +149,7 @@ func (a *App) CheckForUpdates() (UpdateStatus, error) {
updateStatus.CurrentVersion, currentChannel) updateStatus.CurrentVersion, currentChannel)
} }
updateStatus.Checking = false
return updateStatus, nil return updateStatus, nil
} }

View File

@@ -1,11 +1,11 @@
[EMLy] [EMLy]
SDK_DECODER_SEMVER = 1.4.1 SDK_DECODER_SEMVER = 1.4.2
SDK_DECODER_RELEASE_CHANNEL = beta SDK_DECODER_RELEASE_CHANNEL = beta
GUI_SEMVER = 1.5.5 GUI_SEMVER = 1.6.0
GUI_RELEASE_CHANNEL = beta GUI_RELEASE_CHANNEL = beta
LANGUAGE = it LANGUAGE = it
UPDATE_CHECK_ENABLED = false UPDATE_CHECK_ENABLED = false
UPDATE_PATH = UPDATE_PATH =
UPDATE_AUTO_CHECK = false 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" BUGREPORT_API_KEY = "emly_1BaQdBknsMGcY5DynSby71JnWOKXtJvnuUprkgWT0pujpLFxj5HaTXP9vtJAMk63"

View File

@@ -1,6 +1,6 @@
#define ApplicationName 'EMLy' #define ApplicationName 'EMLy'
#define ApplicationVersion GetVersionNumbersString('EMLy.exe') #define ApplicationVersion GetVersionNumbersString('EMLy.exe')
#define ApplicationVersion '1.5.4_beta' #define ApplicationVersion '1.6.0_beta'
[Languages] [Languages]
Name: "english"; MessagesFile: "compiler:Default.isl" Name: "english"; MessagesFile: "compiler:Default.isl"