Skip to content

Speed up the distribution of self-hosted webextensions in Firefox.

Notifications You must be signed in to change notification settings

alexandre-abrioux/webextension-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webextension helper

Speed up the distribution of self-hosted Firefox webextensions

  • provides a lightweight web service to serve your JSON update manifest ;
  • ease the usage of web-ext via a simple docker image to sign your webextension on AMO

Dependencies

This tool relies on docker and docker-compose. See https://docs.docker.com/compose/install/

Some shortcuts are provided by a Makefile. You will need make to use them, but the tool is not mandatory.

Installation

  • navigate to your webextension's project directory
cd /home/<username>/dev/webextension
  • move all sources to a new subdirectory src. If you already used the web-ext npm package in this directory before you should also move your add-on id file.
mkdir src
mv !(src) src
[ -f .web-extension-id ] && mv .web-extension-id src
  • clone this repository as a submodule of the webextension
git submodule add [email protected]:alexandre-abrioux/webextension-helper.git helper
cp helper/.env.dist helper/.env
vim helper/.env

Signing your Web-Extension

Simply run make sign.

Updating Mozilla's web-ext Tool

To rebuild the web-ext docker image you can run make update.

Enabling Auto-Updates

  • configure your webextension's manifest file to target the update.php script
"applications": {
  "gecko": {
    "update_url": "https://webextension-helper.example.com/updates.php"
  }
}
  • use the docker-compose.yml file to start the web service on your server
make up

Makefile

Some shortcuts are configured in a Makefile. Use make help for more information.

  • make help
  • make build
  • make up
  • make stop
  • make down
  • make restart
  • make sign
  • make update

About

Speed up the distribution of self-hosted webextensions in Firefox.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published