mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
deploy: fixing version bug in windows msi build (#4214)
This commit is contained in:
parent
e45ddd98ce
commit
7818b94165
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user