File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,6 @@ EDITION=$1
21
21
PLAT=$2
22
22
VER=$3
23
23
24
- if test -z $VER ; then
25
- VER=' V1.0-50fc6d2'
26
- fi
27
-
28
24
if test -z $PLAT ; then
29
25
PLAT=' all'
30
26
fi
@@ -33,9 +29,9 @@ cd $(dirname "$0")
33
29
c_dir=" $PWD "
34
30
35
31
function usage() {
36
- echo " useage: "
37
- echo " download precompiled ijk or github edition. "
38
- echo " $0 ijk|github [ios|macos|all] [<release tag>]"
32
+ 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>]"
39
35
}
40
36
41
37
function download() {
@@ -66,6 +62,11 @@ if [[ "$PLAT" != 'ios' && "$PLAT" != 'macos' && "$PLAT" != 'all' ]]; then
66
62
exit
67
63
fi
68
64
65
+ if test -z $VER ; then
66
+ VER=$( git describe --abbrev=0 --tag | awk -F - ' {printf "%s-%s",$1,$2}' )
67
+ echo " auto find the latest tag:${VER} "
68
+ fi
69
+
69
70
if [[ " $PLAT " == ' ios' || " $PLAT " == ' macos' ]]; then
70
71
download $PLAT
71
72
elif [[ " $PLAT " == ' all' ]]; then
You can’t perform that action at this time.
0 commit comments