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
2121PLAT=$2
2222VER=$3
2323
24- if test -z $VER ; then
25- VER=' V1.0-50fc6d2'
26- fi
27-
2824if test -z $PLAT ; then
2925 PLAT=' all'
3026fi
@@ -33,9 +29,9 @@ cd $(dirname "$0")
3329c_dir=" $PWD "
3430
3531function 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>]"
3935}
4036
4137function download() {
@@ -66,6 +62,11 @@ if [[ "$PLAT" != 'ios' && "$PLAT" != 'macos' && "$PLAT" != 'all' ]]; then
6662 exit
6763fi
6864
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+
6970if [[ " $PLAT " == ' ios' || " $PLAT " == ' macos' ]]; then
7071 download $PLAT
7172elif [[ " $PLAT " == ' all' ]]; then
You can’t perform that action at this time.
0 commit comments