Updated install.sh
This commit is contained in:
parent
ec4b4a393a
commit
88013ea022
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
if [ ! -d www ]; then
|
if [ ! -d www ]; then
|
||||||
echo Symlinking the escalator-web directory
|
echo Symlinking the escalator-web directory
|
||||||
ln -s `realpath ../escalator-web` `realpath www`
|
ln -s `realpath ../escalator-web/www` `realpath www`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p platforms
|
mkdir -p platforms
|
||||||
|
@ -14,16 +14,13 @@ fi
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
echo "Building android app"
|
echo "Building android app"
|
||||||
|
cordova build android
|
||||||
cd ./platforms/android/app/
|
cd ./platforms/android/app/
|
||||||
gradle build
|
gradle build
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
cd ./platforms/android/app/
|
build
|
||||||
|
|
||||||
if [ ! -d build ]; then
|
|
||||||
build
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd build/outputs/apk/debug/
|
cd build/outputs/apk/debug/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue