mirror of
https://github.com/beerpiss/saekawa.git
synced 2024-11-30 18:24:30 +01:00
17 lines
792 B
PowerShell
17 lines
792 B
PowerShell
cargo build --target i686-pc-windows-msvc --release
|
|
|
|
if (!(Test-Path ./saekawa.pfx)) {
|
|
$cert = New-SelfSignedCertificate -Type Custom `
|
|
-Subject "CN=saekawa self-signed certificate" `
|
|
-CertStoreLocation cert:\CurrentUser\My `
|
|
-KeyUsage DigitalSignature
|
|
|
|
Export-PfxCertificate -Cert $cert `
|
|
-FilePath saekawa.pfx `
|
|
-Password (ConvertTo-SecureString -String "saekawa" -Force -AsPlainText)
|
|
}
|
|
|
|
signtool sign -f saekawa.pfx -p "saekawa" -fd SHA256 -t http://timestamp.comodoca.com/authenticode -v target/i686-pc-windows-msvc/release/saekawa.dll
|
|
|
|
Write-Output "Remember to make the .rtext section writable for auto-updates! I have fuck all idea how to do it in Rust itself, so it's manual from here. The DLL has already been signed."
|