🚀
Ontrac CLI This is an internally used tool. I don't think it will help general public very much. It is used to automate switching cordova/phonegap projects between companies and automatically building with XCODE / Android Studio.
Installation:
npm i -g ontrac
How use:
Command | Description |
---|---|
use | ontrac use project --version=1.4.10 |
deploy | ontrac deploy |
build | ontrac build |
Dependencies:
Obs: If you are a developer and you are trying to build a APK or IPA, make sure that your environment's variables are already exported.
for Mac OS, copy and update the values inside your ~/.bashrc or in ~/.zshrc :
export ANDROID_HOME=/Users/$(whoami)/Library/Android/sdk
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_212.jdk/Contents/Home/
export PATH=$PATH:/Users/$(whoami)/Library/Android/sdk/tools:/Users/$(whoami)/Library/Android/sdk/tools/bin:/Users/$(whoami)/Library/Android/sdk/platform-tools:/Users/$(whoami)/Library/Android/sdk/build-tools/28.0.3
If you are a QA, we have an iMac with everything ready for you to generate a test build.
1) ontrac use client_name --version=1.4.10:
It's optional for development environment --version
2) ontrac deploy (sandbox or production):
3) ontrac build (iOS or Android):
In order for android to build a password is needed to open the keystore file. The password you have access to is in your 1Password Account.
android:
ios:
Contributing
This project can be better with your help. If you see something that can be improved or you have an idea, open an issue in ontrac-cli board.