mirror of
https://github.com/golang/go
synced 2024-11-14 06:40:22 -07:00
984b4e381d
The installer now: allows a user to select an alternative install directory, it now adds a Go folder to the Programs Menu, and it places two shortcuts on the user's desktop. The Program Menu folder contains shortcuts to the uninstaller and two batch files, go.bat and godoc.bat. The desktop shortcuts also point to go.bat and godoc.bat. go.bat sets the Go environment, including Path, and spawns a Window's shell. godoc.bat starts the godoc server at localhost:6060 then spawns a browser window pointing to the document server. Setting the environment temporarily and spawning a shell, via go.bat, should be safer than messing with the system's environment and it makes the user experience a bit more streamlined. The packager does work in its current state but it still needs some polishing. And yes, the plan is to add a dialogue to allow the user to decline the desktop shortcuts. R=rsc, alex.brainman, tjyang2001 CC=golang-dev https://golang.org/cl/5399042 |
||
---|---|---|
.. | ||
godocserver.bat | ||
goenv.bat | ||
installer.wxs | ||
LICENSE | ||
package.bash | ||
README |
package.bash packages the Go toolchain for Windows in zip and installer (msi) format. Dependencies ============ - WiX Installer XML (WiX) toolset: http://wix.sourceforge.net/ - 7Zip command-line: http://www.7-zip.org/download.html - MinGW/Msys tools Unzip and place 7za.exe in msys' bin directory. Add the WiX bin directory to PATH. Packaging ========= - have a go tree at $GOROOT - make sure $GOBIN=$GOROOT\bin or is empty - make sure $GOARCH=386 or $GOARCH=amd64 - select appropriate version "hg up -r ..." - build go "cd $GOROOT/src; ./all.bash" - create Windows packages "cd $GOROOT/misc/windows; ./package.bash"