summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-06 07:09:56 +0800
committerGitHub <[email protected]>2022-09-06 07:09:56 +0800
commitf7ea3d7c6c599c4132d3ffcb6fec26bf1f461d0b (patch)
treebf7248f2a8ba03db2b501674e9046696725871dd
parentcfa0c527f0b86daaa906d93c499eceea7785ba0e (diff)
parentaeb6be2d831fc28efd62065dde34627cb1dba9e6 (diff)
Merge pull request #2784 from jianglu/master
wdk-rule: add digest algorithm option for signtool
-rw-r--r--xmake/rules/wdk/sign/sign.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/rules/wdk/sign/sign.lua b/xmake/rules/wdk/sign/sign.lua
index bd46af76a..8bf68b53a 100644
--- a/xmake/rules/wdk/sign/sign.lua
+++ b/xmake/rules/wdk/sign/sign.lua
@@ -84,6 +84,11 @@ function main(target, filepath, mode)
table.insert(argv, "/s")
table.insert(argv, store)
end
+ local digest_algorithm = target:values("wdk.sign.digest_algorithm")
+ if digest_algorithm then
+ table.insert(argv, "/fd")
+ table.insert(argv, digest_algorithm)
+ end
-- uses the default test certificate
if mode == "test" and (not certfile and not thumbprint and not store) then