feat: add one-click installers and Windows launcher

This commit is contained in:
Alex
2026-05-24 23:07:03 +03:00
parent 186139f796
commit a70439194e
18 changed files with 870 additions and 720 deletions
+19
View File
@@ -0,0 +1,19 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright (C) 2026 Alexey
from __future__ import annotations
import io
from miband_tracker.stdio import safe_print
def test_safe_print_does_not_crash_on_non_ascii_with_charmap_stream() -> None:
raw = io.BytesIO()
stream = io.TextIOWrapper(raw, encoding="cp1251", errors="strict")
safe_print("API 业务错误", file=stream, flush=True)
stream.flush()
assert b"API " in raw.getvalue()
assert b"\\u4e1a" in raw.getvalue()