If you just want to try Browsh, you can use Homebrew (check out the installation page at the official site).
You need Go, Firefox and Node.js to run Browsh.
Follow the installation guide (you can use an installer).
$ echo $GOPATH
/Users/uesr_name/go
$ # anywhere is ok, but make sure it's not none
$GOPATH/src
and $GOPATH/bin
foldersIf you're not sure if you have these folders, run:
$ mkdir "$GOPATH/src"
$ mkdir "$GOPATH/bin"
Follow the official guide to install Firefox.
The firefox
executable is probably at /Applications/Firefox.app/Contents/MacOS
. You need to add it to your PATH
so that Browsh can create new instances of Firefox.
Follow the official downloading page.
v8.11.4. is currently recommended for working with Browsh (?)
It's a Mozilla's handy tool for working with Firefox web extensions:
$ npm install -g web-ext
Fork Browsh to your Github account. Clone it to $GOPATH/src
.
$ cd "$GOPATH/src/browsh/webext"
$ npm install
$ cd "$GOPATH/src/browsh"
$ # install several required package"
$ ./interfacer/contrib/build_browsh.sh
Now that you have all of the required dependencies installed, we can run Browsh. Open three terminals and do the follows:
$ cd "$GOPATH/src/browsh/webext"
$ # create a dist folder inside the webext folder.
$ npx webpack --watch
$ # the dist folder is created in the first terminal
$ cd "$GOPATH/src/browsh/webext/dist"
$ # create a dist folder inside the webext folder.
$ npx webpack --watch
$ cd "$GOPATH/src/browsh/interfacer"
$ go run ./cmd/browsh/main.go --firefox.use-existing --debug