Scripts to publish Firefox for Android on Google Play Store.
⚠️ You need Python >= 3.6 to run this set of scripts. Python 2 isn't supported starting version 0.5.0. Python 3.5 was removed in version 3.0.0.- Create a virtualenv and source it
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
python setup.py develop
- If using push_aab.py, download
bundletool
from https://github.com/google/bundletool/releases and set environment variableBUNDLETOOL_PATH=path/to/bundletool.jar
- Execute either
mozapkpublisher/get_apk.py
, ormozapkpublisher/push_apk.py
, ormozapkpublisher/push_aab.py
, ormozapkpublisher/update_apk_description.py
- Run
--help
to each of these script to know how to call them.
- Install Xcode command line tools
xcode-select --install
- Create a virtualenv and source it
pip install -r requirements.txt
- Some errors might happen during
python setup.py develop
- fatal error: 'openssl/opensslv.h' file not found
- Temporarily adjust permissions on /usr/local so brew can update:
sudo chgrp -R admin /usr/local
sudo chmod -R g+w /usr/local
- Install the updated version of OpenSSL (you probably use 1.0.2j):
brew install openssl
- You may want/need to delete an existing symlink to openssl from /usr/local/bin:
rm /usr/local/bin/openssl
- Re-link the proper brew version:
sudo ln -s /usr/local/Cellar/openssl/1.0.2i/bin/openssl /usr/local/bin/openssl
sudo ln -s /usr/local/Cellar/openssl/1.0.2j/include/openssl/ /usr/local/include/openssl
- Restore original permissions on /usr/local/bin:
sudo chown root:wheel /usr/local
- Temporarily adjust permissions on /usr/local so brew can update:
- fatal error: 'openssl/opensslv.h' file not found
A guide to manually publish APKs onto Google Play Store
- Generate a Google Play Store json certificate. This certificate needs to have write access to the app you want to publish. In this context, "app" means Fennec, Fennec Beta or Fennec Nightly.
- Execute the steps defined in the section above.
- Download the latest signed builds. For instance, for Fennec Nightly:
./mozapkpublisher/get_apk.py --latest-nightly
./mozapkpublisher/push_apk.py --no-gp-string-update --track beta --credentials /path/to/your/googleplay/creds.json x86.apk arm.apk
- Note
beta
track on Google Play, that's our way to show to people on Play Store that it's not a finished product. We don't use the "production" track for Nightly, unlike beta and release.
- If all goes well, add
--commit
to the command line and rerun it.