fix: create VERSION file on first ZIP run to prevent false update alerts

This commit is contained in:
Reditus committed 2026-05-14 01:10:50 +01:00
1 parent a9ac20e036
commit f84dd975cd
1 file changed
+4 -1
+4 -1
View File
@@ -111,7 +111,10 @@ class UpdateService:
with open(version_file) as f:
local_sha = f.read().strip().replace('\r', '').replace('\n', '')[:7]
else:
local_sha = "unknown"
# First run after ZIP download: record current version
local_sha = remote_sha
with open(version_file, 'w') as f:
f.write(remote_sha + '\n')
self._latest_sha = remote_sha
self._current_sha = local_sha