-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuddybuild_postclone.sh
More file actions
51 lines (40 loc) · 1.33 KB
/
buddybuild_postclone.sh
File metadata and controls
51 lines (40 loc) · 1.33 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
#!/usr/bin/env bash
cd /Users/buddybuild/workspace/FreightMob
echo '=== Start to run : npm install npm -g'
npm install npm -g
if hash cordova 2>/dev/null; then
echo '=== Detected cordova command, run npm update -g cordova'
npm update -g cordova
else
echo '=== Can not Detecte cordova command, run npm install -g cordova'
npm install -g cordova
fi
if hash ionic 2>/dev/null; then
echo '=== Detected ionic command, run npm update -g ionic'
npm update -g ionic
else
echo '=== Can not Detected ionic command, run npm install -g ionic'
npm install -g ionic
fi
echo '=== Start to run : npm install'
npm install
echo '=== Start to run : bower install'
bower install
echo '=== Start to run : ionic info'
ionic info
ionic platform add android
echo '=== Start to run : ionic state restore'
ionic state restore
ionic platform list
#echo '=== Start to run : cp buddybuild_prebuild to ios platform'
#cp ./buddybuild_prebuild.sh ./platforms/ios
echo '=== Start to run : cp buddybuild_prebuild to android platform'
cp ../buddybuild_prebuild.sh platforms/android
#echo '=== Start to run : cp ./build_extra.gradle to android platform'
#cp ./build-extras.gradle ./platforms/android
echo '=== Start to run : env'
env
if hash android 2>/dev/null; then
echo '=== Detected android command, run android list sdk --all'
android list sdk --all
fi