feat(export): add server-side AI export
Build, Push and Deploy / build (push) Failing after 6m44s
Build, Push and Deploy / deploy (push) Skipped

This commit is contained in:
lai_hong
2026-09-13 13:01:34 +08:00
parent 0877ae73e8
commit 7a506114a2
12 changed files with 632 additions and 3 deletions
+9
View File
@@ -107,6 +107,13 @@ rsync -a \
--exclude '.idea/' \
"$ROOT_DIR/frontend/" "$STAGING_DIR/$PKG_NAME/frontend/"
# ── private AI converter ────────────────────────────────────
mkdir -p "$STAGING_DIR/$PKG_NAME/ai-converter"
rsync -a \
--exclude '__pycache__/' \
--exclude '*.py[cod]' \
"$ROOT_DIR/ai-converter/" "$STAGING_DIR/$PKG_NAME/ai-converter/"
# ── docs ────────────────────────────────────────────────────
if [[ -d "$ROOT_DIR/docs" ]]; then
mkdir -p "$STAGING_DIR/$PKG_NAME/docs"
@@ -154,6 +161,8 @@ assert "wordcloud/backend/wordcloud_generate_hybrid.py" in names
assert "wordcloud/backend/service/app.py" in names
assert "wordcloud/backend/service/line_spacing.py" in names
assert "wordcloud/frontend/src/pages/CanvasStudio.tsx" in names
assert "wordcloud/ai-converter/Dockerfile" in names
assert "wordcloud/ai-converter/app.py" in names
assert not any(".venv" in n for n in names), "venv leaked into archive"
assert not any("/service_workspace/" in n and not n.endswith("/service_workspace") for n in names), "workspace leaked"
print("archive entries:", len(names))