Add MinGW build config, remove console window, Chinese font support
This commit is contained in:
14
sign.ps1
Normal file
14
sign.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
$cert = New-SelfSignedCertificate -Type CodeSigningCert -Subject "CN=ProxmoxVMGUI" -CertStoreLocation Cert:\CurrentUser\My
|
||||
Write-Host "Certificate Thumbprint: $($cert.Thumbprint)"
|
||||
|
||||
$pfxPath = "D:\selftools\proxmox-task\code_signing.pfx"
|
||||
|
||||
$securePassword = New-Object -TypeName System.Security.SecureString
|
||||
$ptr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($securePassword)
|
||||
$plainPassword = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($ptr)
|
||||
[System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ptr)
|
||||
|
||||
$pwd = ConvertTo-SecureString -String $plainPassword -AsPlainText -Force
|
||||
Export-PfxCertificate -Cert $cert -FilePath $pfxPath -Password $pwd
|
||||
|
||||
Write-Host "Certificate exported to $pfxPath"
|
||||
Reference in New Issue
Block a user