Set up the development environment
Before starting to develop, you must set up your device. This is what you must do:
- Install Go. On Mac, you can install it with Homebrew by running
brew install go.
- This is because the build script uses a Go program to generate the manifest.
- Install the genmanifest Go program. In order to do this, run
go install gomodules.avm99963.com/webext/genmanifest@latest.
- Install NPM.
- Now, you must clone the git repository to your device to retrieve the extension source code. To do that, go here and execute the "clone with commit-msg hook" command listed there (if you sign in you'll see several options: cloning via anonymous HTTP, HTTP, or SSH).
- That's it! If you're using a Mac, you're out of luck, because you must perform some more steps.
On a Mac, you must also follow these steps:
- Install Brew if not installed already.
- Use Brew to install the following packages:
gnu-sed. Basically we want to get an updated bash version, an updated version of the
getopt command, and the GNU version of
- Set Brew's bash as the default shell (or just make sure to use Brew's bash when compiling the extension).
- Include the directories where
gnu-sed were installed to