2026-05-20 21:39:12 +08:00

19 lines
412 B
Bash

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
case "${1:-}" in
fix)
npm install sharp @ffmpeg-installer/ffmpeg @ffprobe-installer/ffprobe
;;
check)
node -e "require('sharp'); require('@ffmpeg-installer/ffmpeg'); require('@ffprobe-installer/ffprobe')"
;;
*)
echo "Usage: bash scripts/make.sh fix|check"
exit 1
;;
esac