]> Cypherpunks repositories - gostls13.git/commitdiff
misc/dist: add -wxs flag to provide custom installer.wxs file
authorAndrew Gerrand <adg@golang.org>
Mon, 26 Mar 2012 06:32:20 +0000 (17:32 +1100)
committerAndrew Gerrand <adg@golang.org>
Mon, 26 Mar 2012 06:32:20 +0000 (17:32 +1100)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5908055

misc/dist/bindist.go

index b03fd706db71fd970514f5d5ebc9b1e64842943b..115049aa6835fb582c5842a840c208bf3d6513d1 100644 (file)
@@ -33,6 +33,7 @@ var (
        repo    = flag.String("repo", "https://code.google.com/p/go", "repo URL")
        verbose = flag.Bool("v", false, "verbose output")
        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
 )
@@ -248,6 +249,9 @@ func (b *Build) Do() error {
                // Create MSI installer.
                win := filepath.Join(b.root, "misc/dist/windows")
                installer := filepath.Join(win, "installer.wxs")
+               if *wxsFile != "" {
+                       installer = *wxsFile
+               }
                appfiles := filepath.Join(work, "AppFiles.wxs")
                msi := filepath.Join(work, "installer.msi")
                // Gather files.