feat: remove like event (unreliable via INTERACT_WORD_V2); restore portable build dir

- Drop 'like' event from rules, handler and web UI (Bilibili like messages
  are not reliably delivered as INTERACT_WORD_V2 msg_type=6)
- Keep enter_room / follow / interact_other
- event_rules.json rewritten without like key
- build.py keeps BUILD_DIR = dist/portable
This commit is contained in:
2026-08-08 17:11:15 +08:00
parent 6ae7249583
commit 22ee613352
6 changed files with 9 additions and 15 deletions
+5 -2
View File
@@ -106,13 +106,16 @@ def main() -> int:
"--hidden-import", "danmaku_handler",
"--hidden-import", "tts",
"--hidden-import", "bili_login",
"--noconfirm",
"--distpath", str(BUILD_DIR / "app"),
str(ROOT / "server.py"),
],
)
exe = BUILD_DIR / "app" / "bililive-tts" / "bililive-tts.exe"
if not exe.exists():
print(f"ERROR: PyInstaller failed, {exe} not found")
internal = BUILD_DIR / "app" / "bililive-tts" / "_internal"
base_lib = internal / "base_library.zip"
if not exe.exists() or not base_lib.exists():
print(f"ERROR: PyInstaller build incomplete: exe={exe.exists()}, base_library.zip={base_lib.exists()}")
return 1
print(f" OK: {exe} ({exe.stat().st_size // 1024 // 1024} MB)")