Skip to content

Commit

Permalink
packaging: use platform specific env prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Nov 8, 2023
1 parent 9173069 commit da81368
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/windows/package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ function Protect-Asset {
[Parameter(Mandatory=$false, Position=1)]
[boolean] $Seal
)
if ($env:SIGN -eq 'true' -and $env:SIGNER_NAME) {
if ($env:SIGN -eq 'true' -and $env:WINDOWS_SIGNER_NAME) {
Write-Host "+++ Signing $Name"
if ($Seal) {
signtool sign /seal /a /n "$env:SIGNER_NAME" "$Name"
signtool sign /seal /a /n "$env:WINDOWS_SIGNER_NAME" "$Name"
} else {
signtool sign /a /n "$env:SIGNER_NAME" "$Name"
signtool sign /a /n "$env:WINDOWS_SIGNER_NAME" "$Name"
}
} else {
Write-Host "+++ SIGN and/or SIGNER_NAME not set, skipping signature of $Name"
Expand Down

0 comments on commit da81368

Please sign in to comment.