File size: 1,464 Bytes
6f2099e
 
 
4f58976
6f2099e
 
 
 
1d61ca0
6f2099e
 
1d61ca0
6f2099e
 
1d61ca0
4f58976
1d61ca0
 
4f58976
1d61ca0
4f58976
1d61ca0
 
4f58976
1d61ca0
6f2099e
1d61ca0
 
6f2099e
 
1d61ca0
6f2099e
1d61ca0
4f58976
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
#!/usr/bin/env bash
set -euo pipefail

echo "=== Deck2Video v4.3 Zero-Egress Setup (macOS / Linux) ==="
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"

if ! command -v ffmpeg >/dev/null 2>&1; then
  echo "[!] FFmpeg not found on PATH. Ensure ffmpeg is installed locally."
fi

echo "[1/2] Creating Python virtual environment (.venv) and installing packages..."
python3 -m venv .venv
source .venv/bin/activate
if [ -d "$SCRIPT_DIR/offline_vendor/wheels" ]; then
  pip install --no-index --find-links="$SCRIPT_DIR/offline_vendor/wheels" setuptools wheel
  pip install --no-index --find-links="$SCRIPT_DIR/offline_vendor/wheels" -r requirements.txt
  pip install --no-index --find-links="$SCRIPT_DIR/offline_vendor/wheels" --no-deps supertonic
  pip install --no-index --find-links="$SCRIPT_DIR/offline_vendor/wheels" --no-build-isolation --no-deps -e .
else
  pip install setuptools wheel
  pip install -r requirements.txt
  pip install --no-deps supertonic
  pip install --no-build-isolation --no-deps -e .
fi

echo "[2/2] Generating local sample PPTX, DOCX, and HTML files..."
python3 produce_deck_video.py --generate-samples

echo ""
echo "✅ Zero-Egress Setup Complete! (100% Local Offline Default — 0 External Bytes)"
echo "   source .venv/bin/activate"
echo "   python3 produce_deck_video.py -i my_slides.pptx --analyze"
echo "   python3 produce_deck_video.py -i my_slides.pptx --style-pack deepfact_docu -o output/my_video.mp4"