forked from mantrajs/meteor-mantra-kickstarter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild_all.sh
executable file
·62 lines (44 loc) · 1.44 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/env bash
#
export APP_NAME="";
export BUILD_DIR="./.habitat/results";
set -e;
# source .scripts/trap.sh;
source .scripts/utils.sh;
source .scripts/android/installAndBuildTools.sh;
source .scripts/refreshApt.sh;
source .scripts/buildMeteor.sh;
source .scripts/installMeteorApp.sh;
declare JSON_FILE="./package.json";
GetProjectName ${JSON_FILE};
echo -e "Extracted project name '${APP_NAME}' from '${JSON_FILE}'.";
echo -e "Ignoring project name '${APP_NAME}' setting 'mmks' instead.";
APP_NAME="mmks";
echo -e "### Refreshing APT";
refreshApt;
echo -e "### Preparing To Build AndroidAPK";
PrepareToBuildAndroidAPK;
echo -e "### Prebuild Meteor App";
installMeteorApp;
echo -e "### Building AndroidAPK as ${APP_NAME}";
BuildAndroidAPK;
echo -e "### Re-building Meteor App; bundling APK ";
buildMeteor;
echo -e "
Next steps:
Launch server for mobile
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Terminal #1 : One of ...
- .scripts/startInDevMode.sh
- .scripts/startInProdMode.sh # (requires PostgreSQL)
Terminal #2 : meteor npm run acceptance
Android device : ${HOST_SERVER_PROTOCOL}://${HOST_SERVER_NAME}:${HOST_SERVER_PORT}/
";
# 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;
# ";