Add MinGW build config, remove console window, Chinese font support

This commit is contained in:
xiaji
2026-04-16 21:45:14 +08:00
parent 3173475a21
commit 15334459be
6 changed files with 131 additions and 4 deletions

14
sign.ps1 Normal file
View 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"