feat(export): add server-side AI export
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user