-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate-demo.sh
More file actions
executable file
·40 lines (34 loc) · 898 Bytes
/
generate-demo.sh
File metadata and controls
executable file
·40 lines (34 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# Generate MoltOS demo GIF using VHS
# Usage: ./generate-demo.sh
set -e
echo "=== MoltOS Demo GIF Generator ==="
echo ""
# Check if vhs is installed
if ! command -v vhs &> /dev/null; then
echo "VHS not found. Installing..."
# Try to install via Go
if command -v go &> /dev/null; then
go install github.com/charmbracelet/vhs@latest
export PATH=$PATH:$(go env GOPATH)/bin
else
echo "Go not found. Trying Docker..."
docker run --rm -v "$PWD:/vhs" ghcr.io/charmbracelet/vhs:latest /vhs/assets/demo.tape
exit 0
fi
fi
# Generate the GIF
echo "Generating demo.gif..."
cd assets
vhs demo.tape
if [ -f demo.gif ]; then
echo ""
echo "✅ Generated: assets/demo.gif"
ls -lh demo.gif
echo ""
echo "Add to README:"
echo ''
else
echo "❌ Failed to generate demo.gif"
exit 1
fi