This commit is contained in:
hashbro
2026-08-05 04:04:06 +08:00
parent 7f35e04634
commit d4fb538997
94 changed files with 921 additions and 135 deletions
+8 -4
View File
@@ -66,10 +66,14 @@ def set_tree_root(root: Path) -> Path:
def ensure_tree_layout(root: Path) -> None:
camp = root / "web" / CAMPAIGN_HASH
sync = root / "sync"
if not camp.is_dir():
raise SystemExit(f"missing campaign dir: {camp}")
if not sync.is_dir():
raise SystemExit(f"missing sync dir: {sync}")
if not camp.is_dir() or not sync.is_dir():
raise SystemExit(
f"missing working tree under {root} (need web/{CAMPAIGN_HASH}/ and sync/).\n"
f"Run first:\n"
f" python3 tools/new_project.py --skip-patch\n"
f"or directly:\n"
f" python3 tools/new_project.py --deployment-domains '...' --reporting-domains '...'"
)
def pack_seed(value: str) -> bytes: