Skip to content

Commit 95ef921

Browse files
authored
Use PowerShell signing script in VSTS builds (#1480)
1 parent 89f453c commit 95ef921

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tools/releaseBuild/signing.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<SignConfigXML>
33
<job platform="" configuration="" dest="__OUTPATHROOT__\signed" jobname="vscode powershell" approvers="vigarg;gstolt">
4-
<file src="__INPATHROOT__\release\out\PowerShell-insiders.vsix" signType="100040160"
4+
<file src="__INPATHROOT__\release\out\PowerShell-insiders.vsix" signType="Vsix"
55
dest="__OUTPATHROOT__\PowerShell-insiders.vsix" />
66
</job>
77
</SignConfigXML>

tools/releaseBuild/vstsbuild.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ Begin
2121
& $gitBinFullPath clone -b master --quiet https://github.com/PowerShell/${releaseToolsDirName}.git $releaseToolsLocation
2222
Import-Module "$releaseToolsLocation/vstsBuild" -Force
2323
Import-Module "$releaseToolsLocation/dockerBasedBuild" -Force -Prefix DockerBased
24+
25+
# Get the update signing script and update the signing XML file
26+
$updateSigningPath = Join-Path $releaseToolsLocation 'updateSigning.ps1'
27+
Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/releaseBuild/updateSigning.ps1' -OutFile $updateSigningPath
28+
& $updateSigningPath -SigningXmlPath (Join-Path $PSScriptRoot 'signing.xml')
2429
}
2530

2631
End {

0 commit comments

Comments
 (0)