Skip to content

Commit a2b2599

Browse files
committed
Add copious output
1 parent 498e822 commit a2b2599

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ci/scripts/validateLauncher.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
echo "Validating launcher."
12
$launcherName="output\nvda*.exe"
3+
echo "launcherName=$launcherName"
4+
echo "Checking existance"
25
if (-not (Test-Path -Path $launcherName -PathType Leaf)) {
6+
echo "File doesn't exist."
37
Write-Output "FAIL: Launcher verification. The launcher does not exist." >> $env:GITHUB_STEP_SUMMARY
48
exit 1
59
}
10+
echo "File exists."
611
if ($env:apiSigningToken) {
12+
echo "Checking signature"
713
$authenticodeSignature = Get-AuthenticodeSignature -FilePath $launcherName
814
if (($authenticodeSignature).Status -ne 'Valid') {
15+
echo "Signature not valid."
916
Set-PSRepository PSGallery -InstallationPolicy Trusted
1017
Install-Module -Name FormatMarkdownTable -Force
1118
Write-Output @"
@@ -18,5 +25,11 @@ FAIL: Launcher validation. Expected the launcher to be signed.
1825
</details>
1926
"@ >> $env:GITHUB_STEP_SUMMARY
2027
exit 1
28+
} else {
29+
echo "Signature valid."
2130
}
31+
echo $authenticodeSignature
32+
} else {
33+
echo "Not checking signature."
2234
}
35+
echo "Launcher verification passed."

0 commit comments

Comments
 (0)