This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from SharkCagey/script_to_sign_release
Add batch script for signing a release
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
!*.docx | ||
!*.bmp | ||
!*.png | ||
!*.bat | ||
|
||
# project related | ||
!*.sln | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
echo off | ||
|
||
echo Use this batch script to sign the 'SharkCageApplication'. | ||
echo Make sure: | ||
echo 1. You started the script with the 'Developer Command Prompt for VS 2017' | ||
echo 2. You provided the path to your solution folder e.g.: C:\HTWG_shark_cage\SharkCage | ||
echo 3. You have the Yubikey with the certificate (including the private key) available. | ||
|
||
set path_to_solution=%1 | ||
|
||
echo Now build the complete solution, when it is done press enter. | ||
pause >nul | ||
|
||
signtool sign /d "CageChooser" /tr http://timestamp.digicert.com /td sha256 /fd sha256 /sha1 ADBE74BD39789DD111815DE59C60D715143E4620 %path_to_solution%\CageChooser\obj\Release\CageChooser.exe | ||
signtool sign /d "CageConfigurator" /tr http://timestamp.digicert.com /td sha256 /fd sha256 /sha1 ADBE74BD39789DD111815DE59C60D715143E4620 %path_to_solution%\CageConfigurator\obj\Release\CageConfigurator.exe | ||
signtool sign /d "CageService" /tr http://timestamp.digicert.com /td sha256 /fd sha256 /sha1 ADBE74BD39789DD111815DE59C60D715143E4620 %path_to_solution%\CageService\Release\CageService.exe | ||
signtool sign /d "CageManager" /tr http://timestamp.digicert.com /td sha256 /fd sha256 /sha1 ADBE74BD39789DD111815DE59C60D715143E4620 %path_to_solution%\CageManager\Release\CageManager.exe | ||
signtool sign /d "CageManager" /tr http://timestamp.digicert.com /td sha256 /fd sha256 /sha1 ADBE74BD39789DD111815DE59C60D715143E4620 %path_to_solution%\CageManager\Release\CageManager.exe | ||
|
||
echo Now build the 'SharkCageInstaller' project, when it is done press enter | ||
pause >nul | ||
|
||
signtool sign /d "SharkCage Installer" /tr http://timestamp.digicert.com /td sha256 /fd sha256 /sha1 ADBE74BD39789DD111815DE59C60D715143E4620 %path_to_solution%\SharkCageInstaller\Release\setup.exe | ||
signtool sign /d "SharkCage Installer" /tr http://timestamp.digicert.com /td sha256 /fd sha256 /sha1 ADBE74BD39789DD111815DE59C60D715143E4620 %path_to_solution%\SharkCageInstaller\Release\SharkCage.msi | ||
|
||
echo finished. |