ci: use wix install from latest gstreamer ci image

This commit is contained in:
Stéphane Cerveau 2023-04-12 12:02:36 +02:00
parent db83d15ab4
commit 6266ae7485
2 changed files with 13 additions and 2 deletions

View file

@ -107,7 +107,6 @@ windows installer stable:
script: script:
- git fetch --tags - git fetch --tags
- "& ./ci/build_gps.ps1" - "& ./ci/build_gps.ps1"
- "& ./installer/wix/prepare_wix.ps1"
- "& ./installer/wix/prepare_gstreamer.ps1" - "& ./installer/wix/prepare_gstreamer.ps1"
- "& ./installer/wix/build_installer.ps1" - "& ./installer/wix/build_installer.ps1"
artifacts: artifacts:

View file

@ -1,7 +1,19 @@
$wixFolder = Join-Path $PSScriptRoot -ChildPath 'wix/' # Check wix installation
$wixInstalledFolder = "C:\Program Files (x86)\Windows Installer XML v3.5\bin"
if(Test-Path $wixInstalledFolder)
{
$wixFolder = $wixInstalledFolder
}
else
{
$prepareWix = Join-Path $PSScriptRoot -ChildPath prepare_wix.ps1
& "$prepareWix"
$wixFolder = Join-Path $PSScriptRoot -ChildPath 'wix/'
}
$candleToolPath = Join-Path $wixFolder -ChildPath candle.exe $candleToolPath = Join-Path $wixFolder -ChildPath candle.exe
$lightToolPath = Join-Path $wixFolder -ChildPath light.exe $lightToolPath = Join-Path $wixFolder -ChildPath light.exe
$heatToolPath = Join-Path $wixFolder -ChildPath heat.exe $heatToolPath = Join-Path $wixFolder -ChildPath heat.exe
$GPSUpgradeCode = "9B87C8FF-599C-4F20-914E-AF5E68CB3DC0" $GPSUpgradeCode = "9B87C8FF-599C-4F20-914E-AF5E68CB3DC0"
$GPSVersion = $(git describe --always --abbrev=0) $GPSVersion = $(git describe --always --abbrev=0)
Write-Output $GPSVersion Write-Output $GPSVersion