v0.3.0 — PDF Export + OTA Download

This commit is contained in:
clawd
2026-02-20 10:17:09 +00:00
parent df9e7c5541
commit bedfd05bb3
8 changed files with 494 additions and 15 deletions

12
app.go
View File

@@ -361,6 +361,18 @@ func (a *App) CheckForUpdate() (*UpdateInfo, error) {
return a.updater.CheckForUpdate()
}
// DownloadUpdate lädt ein verfügbares Update herunter
func (a *App) DownloadUpdate() (string, error) {
info, err := a.updater.CheckForUpdate()
if err != nil {
return "", fmt.Errorf("Update-Check fehlgeschlagen: %w", err)
}
if !info.Available {
return "Kein Update verfügbar.", nil
}
return a.updater.DownloadUpdate(*info)
}
// HILFSFUNKTIONEN
// loadProductRelations lädt Allergene und Zusatzstoffe für ein Produkt