From b231c9644d8e4e9d5f0590beced19e76fdf142fb Mon Sep 17 00:00:00 2001 From: cd2357 Date: Tue, 2 Feb 2021 14:19:13 +0100 Subject: [PATCH] Change windows binary permissions before signing Explicitly set the permissions on the generated exe binary, which are required by the signtool. --- desktop/package/package.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop/package/package.gradle b/desktop/package/package.gradle index 19a32aa1a6..f4e78a7834 100644 --- a/desktop/package/package.gradle +++ b/desktop/package/package.gradle @@ -271,6 +271,9 @@ task packageInstallers { executeCmd(jPackageFilePath + commonOpts + windowsOpts + " --type exe") + // Set the necessary permissions before calling signtool + executeCmd("attrib -R \"${binariesFolderPath}/Bisq-${appVersion}.exe\"") + // In addition to the groovy quotes around the string, the entire Windows command must also be surrounded // by quotes, plus each path inside the command has to be quoted as well // Reason for this is that the path to the called executable contains spaces