fix(update): improve updater script reliability for 1.7.0

- quote env vars in cmd script for paths with spaces

- add update_error.log diagnostics and timeout while waiting for app exit

- bump APP_VERSION to 1.7.0 and update updater tests
This commit is contained in:
2026-02-15 20:38:24 +03:00
parent e1e2f8f0e8
commit a9a394cf7d
3 changed files with 30 additions and 15 deletions

View File

@@ -39,11 +39,12 @@ class AutoUpdateServiceTests(unittest.TestCase):
target_pid=1234,
)
script_text = Path(script).read_text(encoding="utf-8")
self.assertIn("set APP_DIR=", script_text)
self.assertIn("set SRC_DIR=", script_text)
self.assertIn("set EXE_NAME=", script_text)
self.assertIn("set TARGET_PID=", script_text)
self.assertIn("set \"APP_DIR=", script_text)
self.assertIn("set \"SRC_DIR=", script_text)
self.assertIn("set \"EXE_NAME=", script_text)
self.assertIn("set \"TARGET_PID=", script_text)
self.assertIn(":rollback", script_text)
self.assertIn("if not exist \"%SRC_DIR%\\%EXE_NAME%\"", script_text)
if __name__ == "__main__":