Skip to content

AI video skill for Claude Code & Codex — cinematic, editable product promos with Remotion: 124 shot recipe cards, 150 motion previews, beat sync, sound design, Motion Workbench & JianYing (CapCut CN) export.

1.2 KB
Raw Blame
#!/usr/bin/env bash
# Download the motion-preview MP4s from the gallery-media release into
# gallery/media/ for local preview. They are not tracked in git — the
# deploy-pages workflow assembles them the same way (assemble-media.py:
# bulk gallery-media.zip + any single mp4 uploaded after it) when publishing.
set -euo pipefail
cd "$(dirname "$0")"
python3 assemble-media.py media --repo Vincentwei1021/video-shotcraft
echo "done: $(ls media/*.mp4 | wc -l | tr -d ' ') clips in gallery/media/"

# Showcase 用户投稿(存 showcase-media release,同样不进 git)。
# release 还不存在(尚无投稿)时静默跳过,showcase 页显示空列表。
if gh release view showcase-media --repo Vincentwei1021/video-shotcraft >/dev/null 2>&1; then
  mkdir -p showcase-media
  gh release download showcase-media \
    --repo Vincentwei1021/video-shotcraft \
    --dir showcase-media \
    --clobber
  if [ -f showcase-media/showcase.json ]; then
    mv showcase-media/showcase.json api/showcase.json
  fi
  echo "done: $(ls showcase-media/*.mp4 2>/dev/null | wc -l | tr -d ' ') showcase clips"
else
  printf '{"items": []}\n' > api/showcase.json
  echo "no showcase-media release yet: wrote empty api/showcase.json"
fi