deploy: fixing version bug in windows msi build (#4214)

This commit is contained in:
Nick Anderson 2018-03-26 13:02:52 -07:00 committed by GitHub
parent e45ddd98ce
commit 7818b94165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,7 @@ function New-MsiPackage() {
Name='osquery'
Manufacturer='Facebook'
'@
$wix += "`nId='$(New-Guid)'`n"
$wix += "`n Id='$(New-Guid)'`n"
$wix +=
@'
UpgradeCode='$(var.OsqueryUpgradeCode)'
@ -626,7 +626,7 @@ function Main() {
$version = $latest + '-' + $version.split('-')[2]
}
# Strip off potential carriage return or newline from version string
$version = $version.trim()
$version = $latest.trim()
if ($InstallType.ToLower() -eq 'msi') {
Write-Host '[*] Building osquery MSI' -ForegroundColor Cyan
@ -640,7 +640,7 @@ function Main() {
-certsPath $certs `
-flagsPath $FlagFilePath `
-configPath $ConfigFilePath `
-version $latest `
-version $version `
-extras $Extras
} else {
Write-Host '[*] Building osquery Chocolatey package' -ForegroundColor Cyan