File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change 17
17
18
18
set -e
19
19
20
- EDITION=$1
21
- PLAT=$2
22
- VER=$3
20
+ PLAT=$1
21
+ VER=$2
23
22
24
23
if test -z $PLAT ; then
25
24
PLAT=' all'
@@ -30,17 +29,17 @@ c_dir="$PWD"
30
29
31
30
function usage() {
32
31
echo " === useage ===================="
33
- echo " Download precompiled ijk or github edition libs from github,The usage is as follows:"
34
- echo " $0 ijk|github [ios|macos|all] [<release tag>]"
32
+ echo " Download precompiled libs from github,The usage is as follows:"
33
+ echo " $0 [ios|macos|all] [<release tag>]"
35
34
}
36
35
37
36
function download() {
38
37
local plat=$1
39
- echo " ===[download $plat $EDITION $ VER ]===================="
38
+ echo " ===[download $plat $VER ]===================="
40
39
mkdir -p build/pre
41
40
cd build/pre
42
- local fname=" $plat -universal-$VER - $EDITION .zip"
43
- local url=" https://github.com/debugly/MRFFToolChainBuildShell/releases/download/$VER - $EDITION /$fname "
41
+ local fname=" $plat -universal-$VER .zip"
42
+ local url=" https://github.com/debugly/MRFFToolChainBuildShell/releases/download/$VER /$fname "
44
43
echo " $url "
45
44
curl -LO " $url "
46
45
mkdir -p ../product/$plat /universal
@@ -50,12 +49,6 @@ function download() {
50
49
cd - > /dev/null
51
50
}
52
51
53
- if [[ " $EDITION " != ' ijk' && " $EDITION " != ' github' ]]; then
54
- echo ' wrong edition,use ijk or github!'
55
- usage
56
- exit
57
- fi
58
-
59
52
if [[ " $PLAT " != ' ios' && " $PLAT " != ' macos' && " $PLAT " != ' all' ]]; then
60
53
echo ' wrong plat,use ios or macos or all!'
61
54
usage
You can’t perform that action at this time.
0 commit comments