Feat: Update settings tab implemented.

Auto-updates now configurable (URL, source (gitea or private server), log activity for auto updates.
fix: Update now hardened to prevent installation of corrupt or incorrect .exe files. (security to be hardened in the future)
This commit is contained in:
serversdwn
2026-03-17 21:08:37 -04:00
parent d2a8c2d928
commit 439feb9942
7 changed files with 259 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
"""
Series 3 Watcher — v1.4.2
Series 3 Watcher — v1.4.3
Environment:
- Python 3.8 (Windows 7 compatible)
@@ -78,6 +78,10 @@ def load_config(path: str) -> Dict[str, Any]:
"API_INTERVAL_SECONDS": get_int("API_INTERVAL_SECONDS", 300),
"SOURCE_ID": get_str("SOURCE_ID", gethostname()),
"SOURCE_TYPE": get_str("SOURCE_TYPE", "series3_watcher"),
# Auto-updater source
"UPDATE_SOURCE": get_str("UPDATE_SOURCE", "gitea"),
"UPDATE_URL": get_str("UPDATE_URL", ""),
}
@@ -215,7 +219,7 @@ def scan_latest(
# --- API heartbeat / SFM telemetry helpers ---
VERSION = "1.4.2"
VERSION = "1.4.3"
def _read_log_tail(log_file: str, n: int = 25) -> Optional[list]: