##Building on Windows
#Building and testing the client
- Install Git
- Defaults are fine except these recommendations:
-- "Use Git from the Windows Command Prompt"
-- Checkout as-is, commit Unix-style line endings
-- Use Windows' default console window (especially on Windows 10) - Install Go 1.5.3 (soon to switch to 1.6)
- Open a command console and make a directory for cloning the repo, e.g.:
cd c:\
mkdir work
cd work
mkdir src
cd src
mkdir github.com
cd github.com
mkdir keybase
cd keybase
git clone https://github.com/keybase/client.git
- set GOPATH, e.g.
set GOPATH=c:\work
- set GO15VENDOREXPERIMENT=1 (not needed as of Go 1.6)
cd %GOPATH%\github.com\keybase\client\go\keybase
- Find and set the address of your local server, e.g. set KEYBASE_SERVER_URI=http://172.16.199.5:3000 or use ci1.keybase.io
- Note that when changing environment variables in a console, the service must be restarted for them to take effect
go build
(or test or whatever)
#To build the gui
- Node
- Python 2.7
Switch to Node 5.7.0: - NVM for Windows
Issue the commands "nvm install 5.7.0" and "nvm use 5.7.0" - VisualStudio 2013
- Update npm. In an elevated command prompt (right-click cmd icon and select "Run As Administrator"), issue these commands, and select 3.8.1:
npm install -g npm-windows-upgrade
npm-windows-upgrade
- Open a new command window to capture the environment changes and enter:
npm i
npm run package -- --arch ia32 --platform win32 --appVersion [version]
#Windows VMs available here