Skip to content

Commit

Permalink
#2037: DO IT AGAIN part 5
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Mar 14, 2020
1 parent 143d927 commit ab6be4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build-win32.ps1
Expand Up @@ -83,18 +83,18 @@ If (!(Test-Path $inno_bin)) {
if (!([string]::IsNullOrEmpty($cert_data)) -and !([string]::IsNullOrEmpty($cert_password))) {
Write-Output "Certs detected!"
# Decode and dump to temp file
# If (!(Test-Path $cert_path)) {
If (!(Test-Path $cert_path)) {
Write-Output "Dumping certs to $cert_path..."
$bytes = [Convert]::FromBase64String($cert_data)
[IO.File]::WriteAllBytes($cert_path, $bytes)
# }
}
# Verify the cert and password are good
Write-Output "Verifying certs are good to go..."
$cert_secure_password = ConvertTo-SecureString $cert_password -AsPlainText -Force
Import-PfxCertificate -FilePath "$cert_path" -Password $cert_secure_password -CertStoreLocation "Cert:\LocalMachine\My"
# If we get this far we should be good!
Write-Output "We can sign!"
$can_sign = $true
$cert_secure_password = ConvertTo-SecureString $cert_password -AsPlainText -Force
}

# Get the things we need
Expand Down

0 comments on commit ab6be4f

Please sign in to comment.