Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2017-12-14 20:17:43 +0300
committerJanek Bevendorff <janek@jbev.net>2017-12-15 11:51:55 +0300
commitb457c8c1fa0e8f5f4e78c55acb734875056986a1 (patch)
tree8efd35cf2495bb0055b52a9639742dd883484182 /release-tool
parentf257145ee03f9a18302e692de5aa7c5da920fa2e (diff)
Replace signtool with osslsigncode
Diffstat (limited to 'release-tool')
-rwxr-xr-xrelease-tool18
1 files changed, 12 insertions, 6 deletions
diff --git a/release-tool b/release-tool
index a8d4a7a84..434547fc3 100755
--- a/release-tool
+++ b/release-tool
@@ -303,10 +303,10 @@ checkTransifexCommandExists() {
fi
}
-checkSigntoolCommandExists() {
- command -v signtool > /dev/null
+checkOsslsigncodeCommandExists() {
+ command -v osslsigncode > /dev/null
if [ 0 -ne $? ]; then
- exitError "signtool command not found on the PATH! Please check that you have correctly installed the Windows SDK."
+ exitError "osslsigncode command not found on the PATH! Please install it using 'pacman -S mingw-w64-osslsigncode'."
fi
}
@@ -851,7 +851,7 @@ appsign() {
exit 1
fi
- checkSigntoolCommandExists
+ checkOsslsigncodeCommandExists
if [[ ! -f "${signtool_key}" ]]; then
exitError "Key file was not found!"
@@ -862,12 +862,18 @@ appsign() {
for f in "${sign_files[@]}"; do
if [[ ${f: -4} == '.exe' ]]; then
- logInfo "Signing file '${f}' using signtool..."
- signtool sign -f "${signtool_key}" -p "${password}" -v -t "http://timestamp.comodoca.com/authenticode" "${f}"
+ logInfo "Signing file '${f}' using osslsigncode..."
+ # output a signed exe; we have to use a different name due to osslsigntool limitations
+ osslsigncode sign -pkcs12 "${signtool_key}" -pass "${password}" \
+ -t "http://timestamp.comodoca.com/authenticode" -in "${f}" -out "${f}.signed"
if [ 0 -ne $? ]; then
+ rm -f "${f}.signed"
exitError "Signing failed!"
fi
+
+ # overwrite the original exe with the signed exe
+ mv -f "${f}.signed" "${f}"
else
logInfo "Skipping non-EXE file '${f}'..."
fi