mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 00:07:24 +00:00
13 lines
409 B
PowerShell
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
|
|
}
|