juc500 정상동작

This commit is contained in:
Macbook
2026-07-21 21:04:25 +09:00
parent a423db0556
commit bb9874b931
2917 changed files with 708025 additions and 668 deletions
+21 -1
View File
@@ -2,13 +2,33 @@
from __future__ import annotations
import os
import sys
def main() -> int:
argv = sys.argv[1:]
# 더블클릭 / 바로가기: GUI
backend_only = "--backend" in argv
if backend_only:
argv = [a for a in argv if a != "--backend"]
# Tauri shell loads http://127.0.0.1:8765 — no external browser
if backend_only or os.environ.get("JUC500_TAURI", "").strip().lower() in (
"1",
"true",
"yes",
):
from juc500_xfer.gui_server import run_gui
run_gui(open_browser=False)
return 0
# 더블클릭 / 바로가기: GUI (legacy — browser or Tauri)
if not argv:
if os.environ.get("JUC500_USE_TAURI", "").strip().lower() in ("1", "true", "yes"):
# Tauri launcher should spawn us with --backend; fallback to HTTP-only.
from juc500_xfer.gui_server import run_gui
run_gui(open_browser=False)
return 0
from juc500_xfer.gui_server import run_gui
run_gui(open_browser=True)