Compare commits

..

2 Commits

Author SHA1 Message Date
egg
ac2d9a0240 chore: Set backend.embedded to true for all-in-one packaging
The embedded flag must be true for the portable exe to work.
When embedded is false, the app expects an external backend.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 11:28:56 +08:00
egg
2f80a4ac76 fix: Handle UTF-8 BOM in config.json
Use utf-8-sig encoding to handle Windows BOM (Byte Order Mark)
that may be present in config.json files edited with Notepad.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 11:14:54 +08:00
2 changed files with 3 additions and 2 deletions

View File

@@ -26,7 +26,8 @@ def load_config(config_path: str | None = None) -> dict:
config_path = os.path.join(base_dir, "config.json")
if os.path.exists(config_path):
with open(config_path, "r", encoding="utf-8") as f:
# Use utf-8-sig to handle Windows BOM (Byte Order Mark)
with open(config_path, "r", encoding="utf-8-sig") as f:
return json.load(f)
return {}

View File

@@ -8,7 +8,7 @@
"compute": "int8"
},
"backend": {
"embedded": false,
"embedded": true,
"host": "127.0.0.1",
"port": 8000,
"database": {