From 2d73b4ba152a366f97de839f24626f758d25872a Mon Sep 17 00:00:00 2001 From: Ashton Eby Date: Fri, 25 Oct 2024 12:51:23 -0700 Subject: [PATCH] add required signtool parameters 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] 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. --- sea/build-sea.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sea/build-sea.cjs b/sea/build-sea.cjs index 7bd63328..5cd98bb3 100644 --- a/sea/build-sea.cjs +++ b/sea/build-sea.cjs @@ -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"