Browse Source

Update Sign.ps1

pull/380/head
Dmitry Nefedov 2 years ago
committed by GitHub
parent
commit
60c3a1d532
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Scripts/Sign.ps1

3
Scripts/Sign.ps1

@ -41,6 +41,9 @@ $codeCertificate = Get-ChildItem -Path Cert:\LocalMachine\My | Where-Object -Fil
# TimeStampServer specifies the trusted timestamp server that adds a timestamp to script's digital signature # TimeStampServer specifies the trusted timestamp server that adds a timestamp to script's digital signature
# Adding a timestamp ensures that your code will not expire when the signing certificate expires # Adding a timestamp ensures that your code will not expire when the signing certificate expires
# -Include *.ps1, *.psm1, *.psd1 is obvious, but it's slow # -Include *.ps1, *.psm1, *.psd1 is obvious, but it's slow
Get-ChildItem -Path $FolderPath -Recurse -File | Where-Object -FilterScript {$_.Extension -in $ExtensionsToSearchIn}
Get-ChildItem -Path $FolderPath -Recurse -File | Where-Object -FilterScript {$_.Extension -in $ExtensionsToSearchIn} | ForEach-Object -Process { Get-ChildItem -Path $FolderPath -Recurse -File | Where-Object -FilterScript {$_.Extension -in $ExtensionsToSearchIn} | ForEach-Object -Process {
$Parameters = @{ $Parameters = @{
FilePath = $_.FullName FilePath = $_.FullName

Loading…
Cancel
Save