Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Skip signing file if already signed #35

Open
jespersh opened this issue Aug 5, 2020 · 0 comments
Open

Skip signing file if already signed #35

jespersh opened this issue Aug 5, 2020 · 0 comments

Comments

@jespersh
Copy link

jespersh commented Aug 5, 2020

I'd like to request a checkbox to allow skipping already signed files.

From a .bat script I have the following to skip those files:

echo "%~1\Signtool\signtool.exe" verify /pa %2 
>NUL 2>&1 "%~1\Signtool\signtool.exe" verify /pa %2 && (
  echo File %2 is already signed, skipping
) || (
  "%~1\Signtool\signtool.exe" sign /tr http://timestamp.digicert.com /td sha256 /f "%~1\certificate.pfx" /p secretcode /fd sha256 %2
  exit /b 0
)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant