2011-11-09 16:20:34 -07:00
|
|
|
package.bash packages the Go toolchain for Windows in
|
|
|
|
zip and installer (msi) format.
|
2011-10-17 22:51:45 -06:00
|
|
|
|
|
|
|
Dependencies
|
|
|
|
============
|
2011-11-09 16:20:34 -07:00
|
|
|
- WiX Installer XML (WiX) toolset: http://wix.sourceforge.net/
|
2011-10-17 22:51:45 -06:00
|
|
|
- 7Zip command-line: http://www.7-zip.org/download.html
|
|
|
|
- MinGW/Msys tools
|
|
|
|
|
|
|
|
Unzip and place 7za.exe in msys' bin directory.
|
2011-11-09 16:20:34 -07:00
|
|
|
Add the WiX bin directory to PATH.
|
2011-10-17 22:51:45 -06:00
|
|
|
|
|
|
|
Packaging
|
|
|
|
=========
|
2011-10-27 15:45:17 -06:00
|
|
|
- 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"
|