2023-02-27 20:43:48 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
DIR=$(dirname ${BASH_SOURCE[0]})
|
|
|
|
cd "$DIR"
|
|
|
|
. common
|
|
|
|
mkdir -p "$PREBUILT_DATA_DIR"
|
|
|
|
cd "$PREBUILT_DATA_DIR"
|
|
|
|
|
2023-05-15 12:27:23 +00:00
|
|
|
VERSION=6.0-scrcpy-4
|
2023-02-27 20:43:48 +00:00
|
|
|
DEP_DIR="ffmpeg-$VERSION"
|
|
|
|
|
|
|
|
FILENAME="$DEP_DIR".7z
|
2023-05-15 12:27:23 +00:00
|
|
|
SHA256SUM=39274b321491ce83e76cab5d24e7cbe3f402d3ccf382f739b13be5651c146b60
|
2023-02-27 20:43:48 +00:00
|
|
|
|
|
|
|
if [[ -d "$DEP_DIR" ]]
|
|
|
|
then
|
|
|
|
echo "$DEP_DIR" found
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
get_file "https://github.com/rom1v/scrcpy-deps/releases/download/$VERSION/$FILENAME" \
|
|
|
|
"$FILENAME" "$SHA256SUM"
|
|
|
|
|
|
|
|
mkdir "$DEP_DIR"
|
|
|
|
cd "$DEP_DIR"
|
|
|
|
|
|
|
|
ZIP_PREFIX=ffmpeg
|
|
|
|
7z x "../$FILENAME"
|
|
|
|
mv "$ZIP_PREFIX"/* .
|
|
|
|
rmdir "$ZIP_PREFIX"
|