mirror of
https://github.com/hanxi/xiaomusic.git
synced 2026-05-20 11:15:46 +08:00
add docker
This commit is contained in:
@@ -3,6 +3,15 @@
|
||||
# yt-dlp 依赖 ffmpeg
|
||||
# https://github.com/yt-dlp/yt-dlp#dependencies
|
||||
|
||||
wget https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz
|
||||
tar -xvJf ffmpeg-master-latest-linux64-gpl.tar.xz
|
||||
mv ffmpeg-master-latest-linux64-gpl ffmpeg
|
||||
# 判断系统架构
|
||||
arch=$(arch)
|
||||
|
||||
pkg=ffmpeg-master-latest-linuxarm64-gpl
|
||||
if [[ "${arch}" == "x86_64" ]]; then
|
||||
pkg=ffmpeg-master-latest-linux64-gpl
|
||||
fi
|
||||
|
||||
#export ALL_PROXY=http://192.168.2.5:8080
|
||||
wget https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/$pkg.tar.xz
|
||||
tar -xvJf $pkg.tar.xz
|
||||
mv $pkg ffmpeg
|
||||
|
||||
Reference in New Issue
Block a user