-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_appinventor.sh
executable file
·43 lines (34 loc) · 1.17 KB
/
run_appinventor.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
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
#This scrip start Appinventor, build server and aiStarter for emulator-phone via USB
menu() {
if [ "$#" -eq 0 ] ; then
cat << EOF >&2
Menu:
1|a [Starts appinventor + build + emulator]
2 Starts appinventor + build server
e [Starts emulator]
k kill all sessions
EOF
fi
}
menu
while read command args
do
case $command in
1|a)
cd /home/$USER/Documents/appengine-java-sdk/bin && ./dev_appserver.sh --port=8888 --address=0.0.0.0 /home/$USER/Documents/appinventor-sources/appinventor/appengine/build/war &
cd /home/$USER/Documents/appinventor-sources/appinventor/buildserver && ant RunLocalBuildServer &
/usr/google/appinventor/commands-for-Appinventor/aiStarter &
;;
e)
/usr/google/appinventor/commands-for-Appinventor/aiStarter &
;;
*)
echo "Not and argument"
;;
esac
done
exit 0
cd /home/$USER/Documents/appengine-java-sdk/bin && ./dev_appserver.sh --port=8888 --address=0.0.0.0 /home/$USER/Documents/appinventor-sources/appinventor/appengine/build/war &
cd /home/$USER/Documents/appinventor-sources/appinventor/buildserver && ant RunLocalBuildServer &
/usr/google/appinventor/commands-for-Appinventor/aiStarter &