Subversion Repositories checksum-tools

Rev

Rev 21 | View as "text/x-msdos-batch" | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. @echo off
  2.  
  3. if "%~1"=="" goto :done
  4.  
  5. echo Sign %1 ...
  6.  
  7. >NUL 2>&1 "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" verify /pa %1 && (
  8.         echo File %1 is already signed, skipping
  9.         exit /b 0
  10. ) || (
  11.         "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" sign /a /tr http://timestamp.globalsign.com/tsa/r6advanced1 /td SHA256 /fd SHA256 /n "HickelSOFT" /v %1
  12.         >NUL 2>&1 "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" verify /pa %1 && (
  13.                 echo File %1 is sucessfully signed!
  14.                 exit /b 0
  15.         ) || (
  16.                 echo ERROR while signing file %1 !
  17.                 echo.
  18.                 "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64\signtool.exe" sign /a /tr http://timestamp.globalsign.com/tsa/r6advanced1 /td SHA256 /fd SHA256 /n "HickelSOFT" /v %1
  19.                 echo.
  20.                 pause.
  21.                 exit /b 1
  22.         )
  23. )
  24.  
  25. :done
  26.