Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ output() {
header "Installing ffmpeg"

BUILD_DIR=${1:-}
CACHE_DIR=${2:-}
ENV_DIR=${3:-}
VENDOR_DIR="vendor"
FFMPEG_ARCHIVE_NAME="ffmpeg.tar.xz"

Expand All @@ -29,6 +31,10 @@ cd $VENDOR_DIR
mkdir -p ffmpeg
cd ffmpeg

if [[ -d "$ENV_DIR" && -f "$ENV_DIR/FFMPEG_DOWNLOAD_URL" ]]; then
FFMPEG_DOWNLOAD_URL="$(cat "$ENV_DIR/FFMPEG_DOWNLOAD_URL")"
fi

if [[ -z $FFMPEG_DOWNLOAD_URL ]]; then
echo "Variable FFMPEG_DOWNLOAD_URL isn't set, using default value" | output
FFMPEG_DOWNLOAD_URL="https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz"
Expand Down