Skip to content

Commit

Permalink
feat: Add support for timestamp digest algorithm in sign method
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Aug 7, 2024
1 parent 56c2474 commit 57eacef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
certificate: "224b501264c1454d4627268297670451aed3b0d9"
file: "wmi.dll"
timestamp_rfc3161_url: "http://timestamp.digicert.com"
timestamp_digest_algorithm: "sha256"
description: "This is a test file"
description_url: "https://example.com"
file_digest_algorithm: "sha256"
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export async function sign(options: SignOptions) {
argsString += ` /${key} "${args[key]}"`;
}

const command = `"${signtool}" sign /v /a /sha1 ${options.certificate} ${argsString} "${options.file}"`;
const command = `"${signtool}" sign /v /sha1 ${options.certificate} ${argsString} "${options.file}"`;
console.log(command);
const { stdout, stderr } = await execAsync(command);
console.log(stdout);
Expand Down

0 comments on commit 57eacef

Please sign in to comment.