forked from warehouseman/meteor-mantra-kickstarter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_all.sh
executable file
·48 lines (34 loc) · 1.06 KB
/
build_all.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
44
45
46
47
48
#!/usr/bin/env bash
#
export APP_NAME="":
source .scripts/trap.sh;
source .scripts/utils.sh;
source .scripts/android/installAndroid.sh;
declare JSON_FILE="./package.json";
GetProjectName ${JSON_FILE};
echo -e "Extracted project name "${APP_NAME}" from : ${JSON_FILE}.";
source .scripts/refreshApt.sh;
# source .pkgs/install_local_packages.sh;
source .scripts/buildMeteor.sh;
export BUILD_DIR="./.habitat/results";
refreshApt;
# install_local_packages;
PrepareToBuildAndroidAPK;
BuildAndroidAPK;
buildMeteor;
echo -e "
Next steps:
Launch server for mobile
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Terminal #1 : meteor run --mobile-server=\${HOST_SERVER_NAME} --settings=settings.json;
Terminal #2 : meteor npm run acceptance
Android device : http://\${HOST_SERVER_NAME}:3000/
";
# echo -e " FOR HABITAT VERSION
# Next steps :
# 1) scp ${BUILD_DIR}/${APP_NAME}.tar.gz ${APP_NAME}.planet.sun:~
# 2) ssh ${APP_NAME}.planet.sun
# tar zxf ${APP_NAME}.tar.gz;
# cd ${APP_NAME};
# ./deployMeteor;
# ";