Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

mozilla-tw/FirefoxLiteCustomizedApkRelease

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Firefox Lite Customized Apk Release Handy Tool

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.

Purpose

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.

Paint Point

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.

Prerequisition

  1. export BITRISE_TOKEN as enviromnent variable. To get BITRISE_TOKEN refer Bitrise acquiring a Personal Access Token
  2. export BITRISE_TRIGGER_TOKEN as enviromnent variable. To get BITRISE_TRIGGER_TOKEN, please go to Fx-Lite Bitrise > [Start a Build] > [Advanced]
  3. Download client_secrets.json from Google Cloud Platform Credentials ,refer pyDrive

Installation

Use the package manager pip3 to install libraries.

pip3 install -r requirements.txt

Usage

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.

Authors

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.