File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -37,17 +37,26 @@ foreach ($d in $dir) {
37
37
}
38
38
39
39
$leaf = $d.FullName.split (" \" )[-1 ]
40
- Write-Host " Leaf: $leaf "
41
40
42
41
$version = $leaf -replace " ." , " " -as [int ]
43
42
44
43
if ($version -gt $newest_version ) {
45
- $newest_version
46
- $newest_version_path = $d
44
+ $newest_version = $version
45
+ $newest_version_path = $d.FullName
47
46
}
48
47
}
49
48
50
49
$signtool = " $ ( $newest_version_path ) \x64\signtool.exe"
51
50
52
51
Write-Host " Signtool: $ ( $signtool ) "
53
52
53
+ $certificate = ' .\certificate.pfx'
54
+
55
+ # Create Cert
56
+ $cert_bytes = [Convert ]::FromBase64String($cert_base64 )
57
+ [IO.File ]::WriteAllBytes($certificate , $cert_bytes )
58
+
59
+ # Import Cert
60
+ certutil -f - p $cert_passwd - importpfx $certificate
61
+ Set-Location Cert:\CurrentUser\My
62
+ Get-ChildItem | Format-Table FriendlyName, Thumbprint, Subject
You can’t perform that action at this time.
0 commit comments