File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -2168,8 +2168,7 @@ stages:
2168
2168
-p:ProductVersion=${{ parameters.ProductVersion }}${{ parameters.BuildTag }}
2169
2169
-p:CERTIFICATE=$(certificate.secureFilePath)
2170
2170
-p:PASSPHRASE=$(CERTIFICATE_PASSWORD)
2171
- -p:VCRedistInstaller="$(env.VCToolsRedistDir)\vc_redist.$(env.VSCMD_ARG_TGT_ARCH).exe"
2172
- -p:VSVersion=$(env.VSCMD_VER)
2171
+ -p:VCRedistDir="${env:VCToolsRedistDir}\${env:VSCMD_ARG_TGT_ARCH}\Microsoft.VC143.CRT\"
2173
2172
-p:INCLUDE_AMD64_SDK=true
2174
2173
-p:INCLUDE_X86_SDK=true
2175
2174
-p:INCLUDE_ARM64_SDK=true
Original file line number Diff line number Diff line change @@ -2015,8 +2015,7 @@ jobs:
2015
2015
-p:CERTIFICATE=${env:CERTIFICATE} `
2016
2016
-p:PASSPHRASE=${{ secrets.PASSPHRASE }} `
2017
2017
-p:BundleFlavor=offline `
2018
- -p:VCRedistInstaller="${env:VCToolsRedistDir}\vc_redist.${env:VSCMD_ARG_TGT_ARCH}.exe" `
2019
- -p:VSVersion=${env:VSCMD_VER} `
2018
+ -p:VCRedistDir="${env:VCToolsRedistDir}\${env:VSCMD_ARG_TGT_ARCH}\Microsoft.VC143.CRT\" `
2020
2019
-p:INCLUDE_AMD64_SDK=true `
2021
2020
-p:INCLUDE_X86_SDK=true `
2022
2021
-p:INCLUDE_ARM64_SDK=true `
Original file line number Diff line number Diff line change @@ -234,6 +234,13 @@ $SDKArchs = @($SDKs | ForEach-Object {
234
234
})
235
235
236
236
# Build functions
237
+ function Invoke-BuildStep ([string ]$Name ) {
238
+ & $Name @Args
239
+ if ($Name.Replace (" Build-" , " " ) -eq $BuildTo ) {
240
+ exit 0
241
+ }
242
+ }
243
+
237
244
function Get-ProjectBinaryCache ($Arch , $ID ) {
238
245
return " $BinaryCache \" + ($Arch.BuildID + $ID )
239
246
}
@@ -1564,10 +1571,9 @@ function Build-Installer() {
1564
1571
1565
1572
Isolate- EnvVars {
1566
1573
Invoke-VsDevShell $HostArch
1567
- $VCRedistInstallerPath = " ${env: VCToolsRedistDir} \vc_redist.$ ( $HostArch.ShortName ) .exe"
1568
- if (Test-Path $VCRedistInstallerPath ) {
1569
- $Properties [" VCRedistInstaller" ] = $VCRedistInstallerPath
1570
- $Properties [" VSVersion" ] = $env: VSCMD_VER
1574
+ $VCRedistDir = (Get-ChildItem " ${env: VCToolsRedistDir} \$ ( $HostArch.ShortName ) " - Filter " Microsoft.VC*.CRT" ).FullName
1575
+ if ($VCRedistDir ) {
1576
+ $Properties [" VCRedistDir" ] = " $VCRedistDir \"
1571
1577
}
1572
1578
}
1573
1579
You can’t perform that action at this time.
0 commit comments