ctx-reels 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/setup.sh +14 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ctx-reels",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "description": "AI-powered faceless short-form video generator. Create TikTok/Reels/Shorts from a topic in one command.",
6
6
  "main": "src/modules/pipeline.js",
package/scripts/setup.sh CHANGED
@@ -56,7 +56,20 @@ if [ ! -d "$VENV_DIR" ]; then
56
56
  fi
57
57
 
58
58
  echo "📦 Installing faster-whisper..."
59
- "$VENV_DIR/bin/pip" install -q faster-whisper
59
+
60
+ # Set PKG_CONFIG_PATH for Homebrew FFmpeg (needed for PyAV/av build)
61
+ if [ -d "/opt/homebrew/lib/pkgconfig" ]; then
62
+ export PKG_CONFIG_PATH="/opt/homebrew/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
63
+ elif [ -d "/usr/local/lib/pkgconfig" ]; then
64
+ export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
65
+ fi
66
+
67
+ # Try installing with pre-built wheels first, fall back to source build
68
+ "$VENV_DIR/bin/pip" install -q --upgrade pip 2>/dev/null
69
+ if ! "$VENV_DIR/bin/pip" install -q faster-whisper 2>/dev/null; then
70
+ echo "⚠️ Source build failed. Trying pre-built binaries only..."
71
+ "$VENV_DIR/bin/pip" install -q --only-binary :all: faster-whisper
72
+ fi
60
73
  echo "✅ faster-whisper installed"
61
74
 
62
75
  # 6. Create .env if not exists