Skip to content

Commit

Permalink
use path to signtool
Browse files Browse the repository at this point in the history
  • Loading branch information
echo-bravo-yahoo committed Oct 25, 2024
1 parent 42b7d66 commit 7b2ee1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sea/build-sea.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

0 comments on commit 7b2ee1f

Please sign in to comment.