-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild_new.sh
More file actions
executable file
·55 lines (48 loc) · 1.35 KB
/
build_new.sh
File metadata and controls
executable file
·55 lines (48 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
# author zixie
#函数定义,检测执行结果
function checkResult() {
result=$?
echo "result : $result"
if [ $result -eq 0 ];then
echo "checkResult: execCommand succ"
else
echo "checkResult: execCommand failed"
exit $result
fi
}
echo "********APK build init set env *******"
localPath=`pwd`
echo "localPath:"$localPath
chmod +x ./build_apk.sh
echo "appNo:${appNo}"
echo "param:${1}"
moduleKey=${1}
if [ "$moduleKey"x = ""x ];then
moduleKey=$appNo
fi
#获取应用基本信息的APP
if [ "$moduleKey"x = "ZAPK"x ];then
/bin/bash ./build_apk.sh ZAPK PubGetAPKInfo com.bihe0832.getsignature com.bihe0832.android.app.Application
checkResult
fi
#拼图APP
if [ "$moduleKey"x = "ZPUZZLE"x ];then
/bin/bash ./build_apk.sh ZPUZZLE PubGamePuzzle com.bihe0832.puzzle com.bihe0832.android.app.Application
checkResult
fi
#M3u8 APP
if [ "$moduleKey"x = "ZM3U8"x ];then
/bin/bash ./build_apk.sh ZM3U8 PubM3U8 com.bihe0832.m3u8 com.bihe0832.android.app.Application
checkResult
fi
#ADB Input APP
if [ "$moduleKey"x = "ZINPUT"x ];then
/bin/bash ./build_apk.sh ZINPUT PubAdbInput com.bihe0832.adb.input com.bihe0832.android.app.Application
checkResult
fi
#ADB Input APP
if [ "$moduleKey"x = "ZSHAKE"x ];then
/bin/bash ./build_apk.sh ZSHAKE PubGameShakeba com.bihe0832.shakeba com.bihe0832.android.app.Application
checkResult
fi