Align Taro pages with Next hub/nav/book/community/VIP, pack the single-index Xiaohongshu portal with host-chrome safe areas, and refresh shared book content plus portal README constraints. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
562 B
Python
23 lines
562 B
Python
#!/usr/bin/env python3
|
|
"""从小程序微信同源数据同步到小红书离线包(委托 Node 导出)。"""
|
|
from __future__ import annotations
|
|
|
|
import subprocess
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
MINI = ROOT.parent
|
|
SCRIPT = MINI / "scripts" / "export-xhs-offline.mjs"
|
|
|
|
|
|
def main() -> int:
|
|
if not SCRIPT.is_file():
|
|
print(f"missing {SCRIPT}", file=sys.stderr)
|
|
return 1
|
|
return subprocess.call(["node", str(SCRIPT)], cwd=str(MINI))
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|