feat: 카드·영상 스크립트를 윈도우에서도 돌게 — 외부 프로그램 위치를 scripts/bin.mjs 로 모음, 크롬이 45초 넘게 멈추면 그 장만 다시 찍음, claude 프롬프트는 stdin 으로

This commit is contained in:
minaChoi committed 2026-10-29 09:05:31 +09:00
1 parent 63b4fa74fe
commit e28359ff47
15 files changed
+150 -51

No files matched your search

+14 -1
View File
@@ -18,7 +18,20 @@ import urllib.parse
from pathlib import Path
TEMPLATES = Path(__file__).resolve().parent.parent / "templates"
CHROME = os.environ.get("CHROME_BIN", "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome")
def _chrome():
env = os.environ.get("CHROME_BIN") or os.environ.get("CHROME_PATH")
if env:
return env
if sys.platform == "win32":
for base in (os.environ.get("PROGRAMFILES"), os.environ.get("PROGRAMFILES(X86)"), os.environ.get("LOCALAPPDATA")):
path = Path(base or "") / "Google/Chrome/Application/chrome.exe"
if base and path.is_file():
return str(path)
return "chrome.exe"
return "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" if sys.platform == "darwin" else "google-chrome"
CHROME = _chrome()
# compose.sh 의 영상 창 크기와 같아야 한다
CARD = (816, 1440)