Skip to content

Commit 5762a26

Browse files
committed
update download version.
1 parent 50fc6d2 commit 5762a26

File tree

2 files changed

+17
-21
lines changed

2 files changed

+17
-21
lines changed

README.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,20 @@ At present MRFFToolChain contained OpenSSL、FFmpeg 、libyuv、libopus、libblu
5454
└── pull-repo-ref.sh
5555
```
5656

57-
## ## Download Pre Compiled
57+
## Download Precompiled Edition
5858

5959
可以跳过自己编译,直接从github上下载预编译好的库,节省时间!
60+
预编译库分为 ijk 版和 github 版,其区别是 ijk 版本打了 extra/patches/ffmpeg 目录下的补丁。
6061

61-
```bash
62-
#下载 iOS 平台的预编译库
63-
./download-pre.sh ios
64-
#下载 macOS 平台的预编译库
65-
./download-pre.sh macos
66-
#下载 ios 和 macOS 平台的预编译库
67-
./download-pre.sh all
68-
```
62+
- 下载 ijk 版预编译库:./download-pre.sh ijk
63+
- 下载 github 版预编译库:./download-pre.sh github
64+
65+
可指定平台:
66+
67+
- 下载 ijk 版 iOS 平台的预编译库:./download-pre.sh ijk ios
68+
- 下载 ijk 版 macOS 平台的预编译库:./download-pre.sh ijk macos
69+
- 下载 github 版 iOS 平台的预编译库:./download-pre.sh github ios
70+
- 下载 github 版 macOS 平台的预编译库:./download-pre.sh github macos
6971

7072
## Init Lib Repo
7173

@@ -164,11 +166,4 @@ cd macos
164166

165167
1、如果不同的平台需要编译不同的库,只需要在 apple/compile-cfgs 目录下,建立 list_PLAT.txt 文件即可,PLAT 为对应的平台,比如 ios,macos 等;默认情况下按照 list.txt 里声明的顺序编译各个库。
166168

167-
2、ffmpeg 的配置需要分平台指定,只需要在 ffconfig 目录下创建 module_PLAT.sh 文件即可,PLAT 为对应的平台,比如 ios,macos 等;默认情况下根据 module.sh 声明的配置进行编译 ffmpeg。
168-
169-
## Precompiled Edition
170-
171-
预编译库分为 ijk 版和 github 版,其区别是 ijk 版本打了 extra/patches/ffmpeg 目录下的补丁。
172-
173-
- 下载 ijk 版预编译库:./download-pre.sh ijk
174-
- 下载 github 版预编译库:./download-pre.sh github
169+
2、ffmpeg 的配置需要分平台指定,只需要在 ffconfig 目录下创建 module_PLAT.sh 文件即可,PLAT 为对应的平台,比如 ios,macos 等;默认情况下根据 module.sh 声明的配置进行编译 ffmpeg。

download-pre.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ PLAT=$2
2222
VER=$3
2323

2424
if test -z $VER ;then
25-
VER='V1.0-104be8c'
25+
VER='V1.0-50fc6d2'
2626
fi
2727

2828
if test -z $PLAT ;then
@@ -43,9 +43,10 @@ function download() {
4343
echo "===[download $plat $EDITION $VER]===================="
4444
mkdir -p build/pre
4545
cd build/pre
46-
local fname="$plat-universal-$EDITION-$VER.zip"
47-
echo "https://github.com/debugly/MRFFToolChainBuildShell/releases/download/$VER/$fname"
48-
curl -LO https://github.com/debugly/MRFFToolChainBuildShell/releases/download/$VER/$fname
46+
local fname="$plat-universal-$VER-$EDITION.zip"
47+
local url="https://github.com/debugly/MRFFToolChainBuildShell/releases/download/$VER-$EDITION/$fname"
48+
echo "$url"
49+
curl -LO "$url"
4950
mkdir -p ../product/$plat/universal
5051
unzip -oq $fname -d ../product/$plat/universal
5152
tree -L 2 ../product/$plat/universal

0 commit comments

Comments
 (0)