Skip to content

Commit

Permalink
add required signtool parameters
Browse files Browse the repository at this point in the history
Error: Command failed: C:\"Program Files (x86)"\"Microsoft
SDKs"\ClickOnce\SignTool\signtool.exe remove /s .\dist\fauna.exe
SignTool Error: A required parameter is missing.
Usage: signtool remove [options] <filename(s)> Use the "remove" command
to remove sections of the embedded signature on a PE/COFF file.
WARNING: This command will modify the file on the disk. Please create a
backup copy if you want to preserve the original file. The option "/c"
or "/u" or both are required.
/c          Remove all certificates, except for the signer certificate
            from the signature.
/q          No output on success and minimal output on failure. As always,
            SignTool returns 0 on success and 1 on failure.
/u          Remove the unauthenticated attributes from the signature
            e.g. Dual signatures and timestamps.
/v          Print verbose success and status messages. This may also provide
            slightly more information on error.
  • Loading branch information
echo-bravo-yahoo committed Oct 25, 2024
1 parent a16b972 commit 2d73b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sea/build-sea.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function buildSEAForWindows() {
run("node --experimental-sea-config .\\sea\\sea-config.json");
fs.copyFileSync(process.execPath, ".\\dist\\fauna.exe");
const signtool = "C:\\\"Program Files (x86)\"\\\"Microsoft SDKs\"\\ClickOnce\\SignTool\\signtool.exe";
run(`${signtool} remove /s .\\dist\\fauna.exe`);
run(`${signtool} remove /s /c /u .\\dist\\fauna.exe`);
run(
"npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ^ \
--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2"
Expand Down

0 comments on commit 2d73b4b

Please sign in to comment.