2024-06-27 05:37:37 +02:00
|
|
|
Write-Output "Generating release for git SHA $(git rev-parse HEAD)"
|
|
|
|
|
2024-06-26 18:08:21 +02:00
|
|
|
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
|
2024-06-26 21:44:04 +02:00
|
|
|
sha256sum target/i686-pc-windows-msvc/release/saekawa.dll
|