This guide is for those who want to set up the build environment on Windows Command Prompt or Powershell. Since some of the shell scripts are needed to set up the environment, you can just use Git Bash to run these scripts.
Download and install Go for Windows at Go download page.
Download and install NodeJs for Windows at NodeJs download page
Using Command Prompt or Powershell:
Create a go workspace:
mkdir go
cd go
Set GOPATH to current directory.
set GOPATH=%cd%
Create subdirectories bin and src within your go directory:
mkdir bin
mkdir src
Add %GOPATH%/bin to your PATH.
Download and install Chocolatey package manager at Chocolatey download page.
Using chocolatey package manager run:
choco install dep
npm install -g --no-audit webpack
npm install -g --ignore-scripts web-ext
Download and install Firefox for Windows at Firefox download page. Note: Version 57 or higher is required.
Navigate to GOPATH/src and run:
git clone https://github.com/browsh-org/browsh.git
Navigate to browsh/webext and run:
npm install
Using Git Bash, navigate to browsh/interfacer/contrib and run:
./build_browsh.sh
Using three Command Prompts or Powershells:
Navigate to GOPATH/browsh and run:
go run ./interfacer/src/main.go --firefox.use-existing --debug
Navigate to browsh/webext and run:
webpack --watch
Navigate to browsh/webext/dist and run:
web-ext run --verbose