meshlab/scripts/Windows/resources/windows_sign_dlls.ps1
2021-10-27 15:09:48 +02:00

13 lines
409 B
PowerShell

param($pssw, $path, $cert_path="")
if ([string]::IsNullOrEmpty($cert_path)) {
$cert_path = Join-Path $PSScriptRoot ..\..\..\certificate\certificate.pfx
}
$files = Get-ChildItem $path -include ('*.exe', '*.dll') -Recurse
for ($i=0; $i -lt $files.Count; $i++) {
$file = $files[$i].FullName
signtool.exe sign /fd SHA256 /f $cert_path /p $pssw /t http://timestamp.comodoca.com/authenticode $file
}