This script connects Bitrise to trigger customized builds for different stores (e.g.Samsung, Xiaomi...). The generated builds will be automaically uplaoded to Google Drive : FxLite Releases so that each store's distribution owner can start release.
Since Firefox Lite has a high demand to distribute our product to 5+ stores, each store with a customized Adjust tracker, the release team needs to generate those builds and uploaded on Drive so that the distribution owners can start release.
Originally it a requires a set of manual processes 1) trigger Bitrise to get customized build for all distribution channels, 2) Wait until all build generated 2) download each customized apk from Bitrise, 3)rename those apks locally 4) upload to Google Drive. By using the script, it can reduce repetitive work, prevent human error and human interference, then ultimately contribute to productivity.
- export BITRISE_TOKEN as enviromnent variable. To get BITRISE_TOKEN refer Bitrise acquiring a Personal Access Token
- export BITRISE_TRIGGER_TOKEN as enviromnent variable. To get BITRISE_TRIGGER_TOKEN, please go to Fx-Lite Bitrise > [Start a Build] > [Advanced]
- Download client_secrets.json from Google Cloud Platform Credentials ,refer pyDrive
Use the package manager pip3 to install libraries.
pip3 install -r requirements.txt
Please check a release tag exists in Firefox Lite Release Tags before using the following commands:
python3 customizedApkRelease.py --action=trigger --tag=[v2.1.11]
When it asks for Google Drive access permission, please choose your Mozilla Account to upload.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.