Skip to content

Commit f7783fe

Browse files
committed
编译参数控制调整
1 parent a839fd6 commit f7783fe

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

build_new.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,32 @@ localPath=`pwd`
1818
echo "localPath:"$localPath
1919
chmod +x ./build_apk.sh
2020
echo "appNo:${appNo}"
21+
echo "param:${1}"
2122

23+
moduleKey=${1}
24+
if [ "$moduleKey"x = ""x ];then
25+
moduleKey=$appNo
26+
fi
2227
#获取应用基本信息的APP
23-
if [ "$appNo"x = "ZAPK"x ];then
28+
if [ "$moduleKey"x = "ZAPK"x ];then
2429
/bin/bash ./build_apk.sh ZAPK PubGetAPKInfo com.bihe0832.getsignature com.bihe0832.android.app.Application
2530
checkResult
2631
fi
2732

28-
2933
#拼图APP
30-
if [ "$appNo"x = "ZPUZZLE"x ];then
34+
if [ "$moduleKey"x = "ZPUZZLE"x ];then
3135
/bin/bash ./build_apk.sh ZPUZZLE PubPuzzleGame com.bihe0832.puzzle com.bihe0832.android.app.Application
3236
checkResult
3337
fi
3438

3539
#M3u8 APP
36-
if [ "$appNo"x = "ZM3U8"x ];then
40+
if [ "$moduleKey"x = "ZM3U8"x ];then
3741
/bin/bash ./build_apk.sh ZM3U8 PubM3U8 com.bihe0832.m3u8 com.bihe0832.android.app.Application
3842
checkResult
3943
fi
4044

4145
#ADB Input APP
42-
if [ "$appNo"x = "ZINPUT"x ];then
46+
if [ "$moduleKey"x = "ZINPUT"x ];then
4347
/bin/bash ./build_apk.sh ZINPUT PubAdbInput com.bihe0832.adb.input com.bihe0832.android.app.Application
4448
checkResult
4549
fi

0 commit comments

Comments
 (0)