Skip to content

Commit 52efa34

Browse files
committed
remove EDITION parameters
1 parent e6d3ca5 commit 52efa34

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

download-pre.sh

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717

1818
set -e
1919

20-
EDITION=$1
21-
PLAT=$2
22-
VER=$3
20+
PLAT=$1
21+
VER=$2
2322

2423
if test -z $PLAT ;then
2524
PLAT='all'
@@ -30,17 +29,17 @@ c_dir="$PWD"
3029

3130
function usage() {
3231
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>]"
3534
}
3635

3736
function download() {
3837
local plat=$1
39-
echo "===[download $plat $EDITION $VER]===================="
38+
echo "===[download $plat $VER]===================="
4039
mkdir -p build/pre
4140
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"
4443
echo "$url"
4544
curl -LO "$url"
4645
mkdir -p ../product/$plat/universal
@@ -50,12 +49,6 @@ function download() {
5049
cd - >/dev/null
5150
}
5251

53-
if [[ "$EDITION" != 'ijk' && "$EDITION" != 'github' ]]; then
54-
echo 'wrong edition,use ijk or github!'
55-
usage
56-
exit
57-
fi
58-
5952
if [[ "$PLAT" != 'ios' && "$PLAT" != 'macos' && "$PLAT" != 'all' ]]; then
6053
echo 'wrong plat,use ios or macos or all!'
6154
usage

0 commit comments

Comments
 (0)