This script allows you to publish your browser extension to Chrome, Firefox, and Edge stores automatically.
- Clone this repository:
git clone https://github.com/cpte-org/extension-publish-tool.git
- Install the required packages:
pip install -r requirements.txt
andnpm install --global sign-addon
- Set the required environment variables (see below)
python publish.py --chrome --firefox --edge --extension_id <extension_id> --zip_file_path <zip_file_path>
-
For Chrome Web Store publishing:
CHROME_CLIENT_ID
: Your Chrome Web Store API client IDCHROME_CLIENT_SECRET
: Your Chrome Web Store API client secretCHROME_REFRESH_TOKEN
: Your Chrome Web Store API refresh token
-
For Firefox Add-ons publishing:
FIREFOX_API_KEY
: Your Firefox Add-ons API keyFIREFOX_API_SECRET
: Your Firefox Add-ons API secret
-
For Microsoft Edge Add-ons publishing:
EDGE_TENANT_ID
: Your Microsoft Azure AD tenant ID
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.