summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-06-10 22:49:31 +0800
committerruki <[email protected]>2021-06-10 22:49:31 +0800
commitd473fbde0ed198f725debff21ad0fca70d6d864d (patch)
tree05b66c36c0461658a0487ec2094f1201215ad1cb
parent60208dbc13022af80731711bd61b76845a348cb6 (diff)
improve wdk sign
-rw-r--r--xmake/rules/wdk/sign/sign.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/xmake/rules/wdk/sign/sign.lua b/xmake/rules/wdk/sign/sign.lua
index 1bc6570f6..bd46af76a 100644
--- a/xmake/rules/wdk/sign/sign.lua
+++ b/xmake/rules/wdk/sign/sign.lua
@@ -56,11 +56,13 @@ function main(target, filepath, mode)
-- get signtool
local signtool = _get_tool(target, "signtool")
- -- get timestamp
- local timestamp = target:values("wdk.sign.timestamp") or "http://timestamp.verisign.com/scripts/timestamp.dll"
-
-- init arguments
- local argv = {"sign", "/v", "/t", timestamp}
+ local argv = {"sign", "/v"}
+ local timestamp = target:values("wdk.sign.timestamp")
+ if timestamp then
+ table.insert(argv, "/t")
+ table.insert(argv, timestamp)
+ end
local company = target:values("wdk.sign.company")
if company then
table.insert(argv, "/n")