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:
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user