@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
sh 20 lines 896 Bytes
Raw
1 #!/usr/bin/env bash
2 # Creates a launch-video working directory. Usage: new.sh <dir> [real|mock]
3 # real (default): template/real.html, a story over frozen pages of the real app (beats/).
4 # mock: template/story.html, a hand-built HTML mock of the app.
5 set -euo pipefail
6 dir=${1:?usage: new.sh <dir> [real|mock]}
7 mode=${2:-real}
8 skill=$(cd "$(dirname "$0")/.." && pwd)
9 repo=$(cd "$skill/../../.." && pwd)
10 if [ -e "$dir/story.html" ]; then echo "$dir/story.html already exists" >&2; exit 1; fi
11 case "$mode" in
12 real) template=real.html ;;
13 mock) template=story.html ;;
14 *) echo "mode is real or mock" >&2; exit 2 ;;
15 esac
16 mkdir -p "$dir"
17 cp "$skill/template/$template" "$dir/story.html"
18 cp "$skill/assets/kit.js" "$skill/assets/inter.woff2" "$skill/assets/jbmono.woff2" "$dir/"
19 cp "$repo/assets/prod/black-macos-1024.png" "$dir/logo-prod.png"
20 echo "$dir is ready ($mode): edit $dir/story.html"