Skip to content
This repository has been archived by the owner on Jan 4, 2018. It is now read-only.

Build the App

Roy Meissner edited this page Aug 21, 2015 · 2 revisions

Quick Developement Tests

Install Cordova, run the following commands and than navigate with your Browser to the advertised address.

cordova build browser
cordova serve         #URL will be printed

Build for production

The App can either be built with the Cordova CLI or with usage of the scripts located under ./Docker Build/. For Cordova, you need to install all needed SDKs (like the Android-SDK) and subsequently run:

cordova platform add android    #Or whatever platform is supported by Cordova
cordova build android --release

For additional Informations see the Cordova Docs.

By using Docker, you don't have to install Cordova or any SDKs. Simply run the following commands to build the App for Android:

cd Docker\ Build/ 
./dockerDeploy.sh
./dockerStart.sh

If you wanna build the App for a different platform with Docker, you have to adjust build.sh and Dockerfile.

Remember that the built file is not signed!

Build for developement

The developement build process is similar to the production build process. For Cordova, just omit the --release.

For Docker, you have to adjust a bit more. Remove the --released from build.sh and adjust the following line out of the file Dockerfile to use your current directory instead of cloning the Project from Github.

RUN cd /home/cordova/ && git clone https://github.com/HTWK-App/Smartphone-App.git

If you wanna build the App for a different platform with Docker, you have to adjust build.sh and Dockerfile.

Clone this wiki locally