Skip to content
This repository was archived by the owner on Dec 14, 2021. It is now read-only.

Commit 3be856b

Browse files
committed
build: update windows build scripts to new code signing mechanism
1 parent cf9534d commit 3be856b

2 files changed

Lines changed: 7 additions & 12 deletions

File tree

‎deployment/windows/wixSetup/build.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ VERSION_STRING="${VERSION_STRING//_/.}"
2121
VERSION_STRING="${VERSION_STRING:2}"
2222
echo "installer version is $VERSION_STRING"
2323

24-
PRODUCT_GUID=$(cmd.exe /c "uuidgen")
24+
PRODUCT_GUID=$("uuidgen")
2525
if [ -z "$PRODUCT_GUID" ]; then
2626
echo "Unable to generate GUID. Make sure to run this script from the Visual Studio command propmt. Aborting now."
2727
exit 1

‎script/deploy_windows.sh‎

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,8 @@ DOTTED_VERSION_STRING="${VERSION_STRING//_/.}"
5959

6060

6161
if [ $RUN_CODE_SIGNING = true ]; then
62-
echo -e "$INFO Code signing is enabled. provide the key file path >"
63-
read CODE_SIGNING_KEY_FILE
64-
fi
65-
66-
if [ $RUN_CODE_SIGNING = true ]; then
67-
echo -e "$INFO Code signing is enabled. Please enter your password >"
68-
read CODE_SIGNING_PASSWORD
62+
echo -e "$INFO Code signing is enabled. provide the key's sh1 thumbprint >"
63+
read CODE_SIGNING_THUMBPRINT
6964
fi
7065

7166

@@ -94,13 +89,13 @@ echo -e "$INFO Building the project"
9489

9590
if [ $RUN_CODE_SIGNING = true ]; then
9691
echo -e "$INFO Signing the app"
97-
signtool.exe sign //f $CODE_SIGNING_KEY_FILE //p $CODE_SIGNING_PASSWORD //t "http://timestamp.verisign.com/scripts/timstamp.dll" //d "Sourcetrail ${DOTTED_VERSION_STRING}" //du "https://www.sourcetrail.com/" //v build/Release/app/Sourcetrail.exe
92+
signtool.exe sign //sha1 $CODE_SIGNING_THUMBPRINT //fd sha256 //t "http://timestamp.verisign.com/scripts/timstamp.dll" //d "Sourcetrail ${DOTTED_VERSION_STRING}" //du "https://www.sourcetrail.com/" //v build/Release/app/Sourcetrail.exe
9893

9994
echo -e "$INFO Signing the indexer"
100-
signtool.exe sign //f $CODE_SIGNING_KEY_FILE //p $CODE_SIGNING_PASSWORD //t "http://timestamp.verisign.com/scripts/timstamp.dll" //d "Sourcetrail Indexer ${DOTTED_VERSION_STRING}" //du "https://www.sourcetrail.com/" //v build/Release/app/sourcetrail_indexer.exe
95+
signtool.exe sign //sha1 $CODE_SIGNING_THUMBPRINT //fd sha256 //t "http://timestamp.verisign.com/scripts/timstamp.dll" //d "Sourcetrail Indexer ${DOTTED_VERSION_STRING}" //du "https://www.sourcetrail.com/" //v build/Release/app/sourcetrail_indexer.exe
10196

10297
echo -e "$INFO Signing the Python indexer"
103-
signtool.exe sign //f $CODE_SIGNING_KEY_FILE //p $CODE_SIGNING_PASSWORD //t "http://timestamp.verisign.com/scripts/timstamp.dll" //d "Sourcetrail Python Indexer" //du "https://github.com/CoatiSoftware/SourcetrailPythonIndexer" //v bin/app/data/python/SourcetrailPythonIndexer.exe
98+
signtool.exe sign //sha1 $CODE_SIGNING_THUMBPRINT //fd sha256 //t "http://timestamp.verisign.com/scripts/timstamp.dll" //d "Sourcetrail Python Indexer" //du "https://github.com/CoatiSoftware/SourcetrailPythonIndexer" //v bin/app/data/python/SourcetrailPythonIndexer.exe
10499
fi
105100

106101

@@ -156,7 +151,7 @@ cd ../../..
156151

157152
if [ $RUN_CODE_SIGNING = true ]; then
158153
echo -e "$INFO Signing the 64 bit windows installer"
159-
signtool.exe sign //f $CODE_SIGNING_KEY_FILE //p $CODE_SIGNING_PASSWORD //t "http://timestamp.verisign.com/scripts/timstamp.dll" //d "Sourcetrail ${DOTTED_VERSION_STRING} Installer" //du "https://www.sourcetrail.com/" //v deployment/windows/wixSetup/bin/sourcetrail.msi
154+
signtool.exe sign //sha1 $CODE_SIGNING_THUMBPRINT //fd sha256 //t "http://timestamp.verisign.com/scripts/timstamp.dll" //d "Sourcetrail ${DOTTED_VERSION_STRING} Installer" //du "https://www.sourcetrail.com/" //v deployment/windows/wixSetup/bin/sourcetrail.msi
160155
fi
161156

162157

0 commit comments

Comments
 (0)