File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ Tips:
182182- 初始化仓库时,可跳过拉取远端到本地,只需要在 init 时加上 --skip-pull-base 参数
183183- 初始化仓库时,可跳过应用 FFmpeg 的补丁,只需要在 init 时加上 --skip-patches 参数
184184- 目前 FFmpeg 使用的是 module-full.sh 配置选项,所以包体积略大
185+ - 可以自己把 Github 预编译的库全部下载放到自己的服务器上,在 install 前使用 MR_DOWNLOAD_BASEURL 指定自己的服务器地址
185186
186187## Donate
187188
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function download() {
3333 echo " ---[download]-----------------"
3434 echo " $MR_DOWNLOAD_URL "
3535
36- mkdir -p " $MR_PRE_ROOT "
36+ mkdir -p $( dirname " $dst " )
3737 local tname=" ${dst} .tmp"
3838 curl -L " $MR_DOWNLOAD_URL " -o " $tname "
3939
Original file line number Diff line number Diff line change @@ -27,10 +27,16 @@ function install_plat() {
2727 join=" -$1 "
2828 fi
2929
30- export MR_DOWNLOAD_ONAME=" $TAG -$MR_PLAT ${join} .zip"
31- export MR_DOWNLOAD_URL=" https://github.com/debugly/MRFFToolChainBuildShell/releases/download/$TAG /$LIB_NAME -$MR_PLAT -universal${join} -$VER .zip"
30+ # you can export MR_DOWNLOAD_WEBSERVER use your mirror
31+ if [[ " $MR_DOWNLOAD_BASEURL " != " " ]] ; then
32+ base_url=" $MR_DOWNLOAD_BASEURL "
33+ else
34+ base_url=https://github.com/debugly/MRFFToolChainBuildShell/releases/download/
35+ fi
36+ export MR_DOWNLOAD_ONAME=" $TAG /$LIB_NAME -$MR_PLAT -universal${join} -$VER .zip"
37+ export MR_DOWNLOAD_URL=" ${base_url}${MR_DOWNLOAD_ONAME} "
3238 export MR_UNCOMPRESS_DIR=" $MR_WORKSPACE /product/$MR_PLAT /universal${join} "
33-
39+
3440 ./download-uncompress.sh
3541}
3642
You can’t perform that action at this time.
0 commit comments