diff --git a/sea/build-sea.cjs b/sea/build-sea.cjs index 0418f67d..e525440d 100644 --- a/sea/build-sea.cjs +++ b/sea/build-sea.cjs @@ -43,11 +43,12 @@ function buildSEAForMac() { function buildSEAForWindows() { run("node --experimental-sea-config .\\sea\\sea-config.json"); fs.copyFileSync(process.execPath, ".\\dist\\fauna.exe"); - run("signtool remove /s .\\dist\\fauna.exe"); + const signtool = "C:\\Program Files (x86)\\Microsoft SDKs\\ClickOnce\\SignTool\\signtool.exe"; + run(`${signtool} remove /s .\\dist\\fauna.exe`); run( "npx postject hello.exe NODE_SEA_BLOB sea-prep.blob ^ \ --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2" ); - run("signtool sign /fd SHA256 .\\dist\\fauna.exe"); + run(`${signtool} sign /fd SHA256 .\\dist\\fauna.exe`); run("chmod +x ./dist/fauna"); }