Image for running Rocket.Chat Android builds for private Rocket.Chat servers. Meteor 1.2 Cordova.
1.4K
Create unsigned Android APK, pointing to your own Rocket.Chat server, from Rocket.Chat source code.
Note you must be on either Linux or OS/X. Your build machine or VPS must have at least 4GB of RAM (16 GB of RAM highly recommended) and 10 GB of disk space (SSD recommended) available.
Usage:
First, make sure you have the Rocket.Chat source code on your system.
git clone https://github.com/rocketchat/Rocket.Chat
Then.
docker run -i -t -v <path to Rocket.Chat source code>:/home/Rocket.Chat rocketchat/meteor12androidbuilder
cd /home/Rocket.Chat
meteor add-platform android
If you need compatibility with old Android versions, you must add (ONLY at this point, NOT before, NOT later):
meteor add crosswalk
Finally:
meteor build --server <your Rocket.Chat server URL> ./build
Then look for the APK in ./build directory.
DO NOT reuse existing Rocket.Chat code directories for Android builds. And do not try to re-use Rocket.Chat code directories that have been used in Android builds. If you run into build problems, start fresh with a git clone of the source code:
git clone https://github.com/rocketchat/Rocket.Chat
docker pull rocketchat/meteor12androidbuilder:latest