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:
182
182
- 初始化仓库时,可跳过拉取远端到本地,只需要在 init 时加上 --skip-pull-base 参数
183
183
- 初始化仓库时,可跳过应用 FFmpeg 的补丁,只需要在 init 时加上 --skip-patches 参数
184
184
- 目前 FFmpeg 使用的是 module-full.sh 配置选项,所以包体积略大
185
+ - 可以自己把 Github 预编译的库全部下载放到自己的服务器上,在 install 前使用 MR_DOWNLOAD_BASEURL 指定自己的服务器地址
185
186
186
187
## Donate
187
188
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ function download() {
33
33
echo " ---[download]-----------------"
34
34
echo " $MR_DOWNLOAD_URL "
35
35
36
- mkdir -p " $MR_PRE_ROOT "
36
+ mkdir -p $( dirname " $dst " )
37
37
local tname=" ${dst} .tmp"
38
38
curl -L " $MR_DOWNLOAD_URL " -o " $tname "
39
39
Original file line number Diff line number Diff line change @@ -27,10 +27,16 @@ function install_plat() {
27
27
join=" -$1 "
28
28
fi
29
29
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} "
32
38
export MR_UNCOMPRESS_DIR=" $MR_WORKSPACE /product/$MR_PLAT /universal${join} "
33
-
39
+
34
40
./download-uncompress.sh
35
41
}
36
42
You can’t perform that action at this time.
0 commit comments