File tree Expand file tree Collapse file tree 6 files changed +10
-5
lines changed
Expand file tree Collapse file tree 6 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ function compile_android_platform
6868{
6969 echo " ---do compile android libs--------------------------------------"
7070 ./main.sh compile -p android -c build -l ${LIB_NAME}
71- cd build/product/android/universal/ ${LIB_NAME}
71+ cd build/product/android/universal
7272 zip -rq $DIST_DIR /${LIB_NAME} -android-universal-${RELEASE_VERSION} .zip ./*
7373 cd $ROOT_DIR
7474}
File renamed without changes.
Original file line number Diff line number Diff line change 4848
4949# opus-1.3.1-231124151836
5050LIB_NAME=$( echo $PRE_COMPILE_TAG | awk -F - ' {print $1}' )
51- VER=$( echo $PRE_COMPILE_TAG | awk -F - ' {print $2}' )
51+ prefix=" ${LIB_NAME} -"
52+ suffix=$( echo $PRE_COMPILE_TAG | awk -F - ' {printf "-%s", $NF}' )
53+ # 去掉前缀
54+ temp=${PRE_COMPILE_TAG# $prefix }
55+ # 去掉后缀
56+ VER=${temp% $suffix }
5257
5358if [[ " $MR_PLAT " == ' ios' || " $MR_PLAT " == ' tvos' ]]; then
5459 install_plat
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -55,13 +55,13 @@ case $MR_PLAT in
5555 ;;
5656esac
5757
58- if [[ " $MR_ACTION " == " init" ]]; then
59- ./do-init /main.sh " $@ "
58+ if [[ " $MR_ACTION " == " init" || " $MR_ACTION " == " install " ]]; then
59+ ./do-$MR_ACTION /main.sh " $@ "
6060else
6161 ./do-$MR_ACTION /$plat /main.sh " $@ "
6262fi
6363
64- echo " ---3. $MR_ACTION end-------------------------------"
64+ echo " ---$MR_ACTION end-------------------------------"
6565echo
6666
6767elapsed
You can’t perform that action at this time.
0 commit comments