Skip to content

Commit f7d67a3

Browse files
committed
appveyor: Add extra newlines for PS script
1 parent 7f323ee commit f7d67a3

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

appveyor.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,19 @@ environment:
77
install:
88
- ps: >-
99
Write-Host -ForegroundColor Yellow "Install 'secure-file' tool..."
10+
1011
nuget install secure-file -ExcludeVersion
1112
13+
1214
Write-Host -ForegroundColor Yellow "Decrypt UnitsNet.pfx..."
15+
1316
.\secure-file\tools\secure-file -decrypt Build\UnitsNet.pfx.enc -secret $env:UnitsNetPfxEncSecret
1417
18+
1519
$pfx = Resolve-Path "Build\UnitsNet.pfx"
20+
1621
$password = $env:UnitsNetPfxSecret
22+
1723
$keyContainerName = "VS_KEY_53797375DF3695DD"
1824
1925
@@ -22,20 +28,31 @@ install:
2228
Write-Host -ForegroundColor Yellow "Import $pfx ..."
2329
2430
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
31+
2532
$cert.Import($pfx, $password, [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::Exportable)
33+
2634
$exportPrivateKeyInformation = $true
35+
2736
$certXml = $cert.PrivateKey.ToXmlString($exportPrivateKeyInformation)
2837
38+
2939
$csp = New-Object System.Security.Cryptography.CspParameters
40+
3041
$csp.KeyContainerName = $keyContainerName
42+
3143
$csp.Flags = [System.Security.Cryptography.CspProviderFlags]::UseMachineKeyStore -bor [System.Security.Cryptography.CspProviderFlags]::NoPrompt # -bor is biwise or
44+
3245
$csp.KeyNumber = [System.Security.Cryptography.KeyNumber]::Signature
3346
47+
3448
$rsa = New-Object System.Security.Cryptography.RSACryptoServiceProvider $csp
49+
3550
$rsa.FromXmlString($certXml)
51+
3652
$rsa.Clear()
3753
38-
Write-Host -ForegroundColor Yellow "Sucesfully imported $pfx into StrongName CSP store"
54+
55+
Write-Output "Sucesfully imported $pfx into StrongName CSP store"
3956
build_script:
4057
- ps: >-
4158
#####################################

0 commit comments

Comments
 (0)