Install Go, Node.js, and Firefox using your system's package manager. Browsh requires Version 57 or higher.
Now you should be able to call the go and node binaries:
go version
node --version
npm install -g webpack webpack-cli web-ext
It's assumed that you already have git installed.
Run this anywhere you want:
git clone https://github.com/browsh-org/browsh.git
browsh=/path/to/browsh
cd "$browsh/webext"
npm run get-gobindata
npm install
npm run build
diff -u <(echo -n) <(gofmt -d ./)
./node_modules/.bin/prettier --list-different "{src,test}/**/*.js"
cd "$browsh/interfacer"
go build -o browsh src/main.go
In $browsh/webext
:
webpack --watch
This will continuously watch for changes made to the web extension and rebuild it.
In $browsh/webext/dist
:
web-ext run --verbose --firefox path/to/firefox
cd "$browsh/interfacer"
go run ./cmd/browsh --firefox.use-existing --debug
Or after building:
./browsh --firefox.use-existing --debug