-
Notifications
You must be signed in to change notification settings - Fork 1
Build the App
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
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!
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
.