-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathcodePush.sh
32 lines (24 loc) · 943 Bytes
/
codePush.sh
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
#!/bin/bash
if [ $1 == "-ios" ]
then
echo "going to build ios"
ionic cordova build ios --prod --release
echo "code-push - going to release ios"
code-push release-cordova LlgApp-iOS ios --deploymentName Production
elif [ $1 == "-android" ]
then
echo "going to build android"
ionic cordova build android --prod --release --buildConfig
echo "code-push - going to release android"
code-push release-cordova LlgApp-Android android --deploymentName Production
elif [ $1 == "-all" ]
then
echo "going to build ios"
ionic cordova build ios --prod --release
echo "going to build android"
ionic cordova build android --prod --release --buildConfig
echo "code-push - going to release ios"
code-push release-cordova LlgApp-iOS ios --deploymentName Production
echo "code-push - going to release android"
code-push release-cordova LlgApp-Android android --deploymentName Production
fi