Skip to content

Commit

Permalink
cmd/release: update releaselet to specify arch on windows msi
Browse files Browse the repository at this point in the history
Fixes golang/go#17602

Change-Id: Ia7873d6a5e0226833b2e16a3486bc71f183a8442
Reviewed-on: https://go-review.googlesource.com/34502
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
kardianos committed Dec 15, 2016
1 parent d3e4508 commit d351361
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions cmd/release/releaselet.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,21 @@ func windowsMSI() error {
return err
}

msArch := func() string {
switch runtime.GOARCH {
default:
panic("unknown arch for windows " + runtime.GOARCH)
case "386":
return "x86"
case "amd64":
return "x64"
}
}

// Build package.
if err := runDir(win, filepath.Join(wix, "candle"),
"-nologo",
"-arch", msArch(),
"-dGoVersion="+version,
"-dWixGoVersion="+wixVersion(version),
"-dArch="+runtime.GOARCH,
Expand Down Expand Up @@ -498,7 +510,7 @@ function installCheck() {
my.result.type = 'Warning';
return false;
}
return true;
return true;
}
</script>
<choices-outline>
Expand Down Expand Up @@ -543,15 +555,14 @@ var windowsData = map[string]string{
UpgradeCode="$(var.UpgradeCode)" >
<Package
Id='*'
Id='*'
Keywords='Installer'
Description="The Go Programming Language Installer"
Comments="The Go programming language is an open source project to make programmers more productive."
InstallerVersion="300"
Compressed="yes"
InstallScope="perMachine"
Languages="1033" />
<!-- Platform="x86 or x64" -->
<Property Id="ARPCOMMENTS" Value="The Go programming language is a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language." />
<Property Id="ARPCONTACT" Value="[email protected]" />
Expand Down Expand Up @@ -610,16 +621,16 @@ var windowsData = map[string]string{
Root="HKCU"
Key="Software\GoProgrammingLanguage"
Name="ShortCuts"
Type="integer"
Type="integer"
Value="1"
KeyPath="yes" />
KeyPath="yes" />
</Component>
</DirectoryRef>
<!-- Registry & Environment Settings -->
<DirectoryRef Id="GoEnvironmentEntries">
<Component Id="Component_GoEnvironment" Guid="{3ec7a4d5-eb08-4de7-9312-2df392c45993}">
<RegistryKey
<RegistryKey
Root="HKCU"
Key="Software\GoProgrammingLanguage"
Action="create" >
Expand Down

0 comments on commit d351361

Please sign in to comment.