mirror of
https://github.com/golang/go
synced 2024-11-22 05:54:40 -07:00
misc/dist: add -wxs flag to provide custom installer.wxs file
R=golang-dev, r CC=golang-dev https://golang.org/cl/5908055
This commit is contained in:
parent
072646cd17
commit
bfdc45a456
4
misc/dist/bindist.go
vendored
4
misc/dist/bindist.go
vendored
@ -33,6 +33,7 @@ var (
|
|||||||
repo = flag.String("repo", "https://code.google.com/p/go", "repo URL")
|
repo = flag.String("repo", "https://code.google.com/p/go", "repo URL")
|
||||||
verbose = flag.Bool("v", false, "verbose output")
|
verbose = flag.Bool("v", false, "verbose output")
|
||||||
upload = flag.Bool("upload", true, "upload resulting files to Google Code")
|
upload = flag.Bool("upload", true, "upload resulting files to Google Code")
|
||||||
|
wxsFile = flag.String("wxs", "", "path to custom installer.wxs")
|
||||||
|
|
||||||
username, password string // for Google Code upload
|
username, password string // for Google Code upload
|
||||||
)
|
)
|
||||||
@ -248,6 +249,9 @@ func (b *Build) Do() error {
|
|||||||
// Create MSI installer.
|
// Create MSI installer.
|
||||||
win := filepath.Join(b.root, "misc/dist/windows")
|
win := filepath.Join(b.root, "misc/dist/windows")
|
||||||
installer := filepath.Join(win, "installer.wxs")
|
installer := filepath.Join(win, "installer.wxs")
|
||||||
|
if *wxsFile != "" {
|
||||||
|
installer = *wxsFile
|
||||||
|
}
|
||||||
appfiles := filepath.Join(work, "AppFiles.wxs")
|
appfiles := filepath.Join(work, "AppFiles.wxs")
|
||||||
msi := filepath.Join(work, "installer.msi")
|
msi := filepath.Join(work, "installer.msi")
|
||||||
// Gather files.
|
// Gather files.
|
||||||
|
Loading…
Reference in New Issue
Block a user