From aeb6be2d831fc28efd62065dde34627cb1dba9e6 Mon Sep 17 00:00:00 2001 From: Jiang Lu Date: Tue, 6 Sep 2022 04:00:11 +0800 Subject: wdk-rule: add digest algorithm option for signtool --- xmake/rules/wdk/sign/sign.lua | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.3.1