From e05e4de98bb0464eb923218f8e80c1743436f10f Mon Sep 17 00:00:00 2001 From: chengpeiquan Date: Mon, 17 Mar 2025 00:08:31 +0800 Subject: [PATCH] fix: windows signtool error --- scripts/build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build.js b/scripts/build.js index 145ef02..e4ca9a4 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -19,7 +19,9 @@ async function buildWin() { `node -e "require('fs').copyFileSync(process.execPath, '${OUTPUT_PATH}')" `, ) - execSync(`signtool remove /s ${OUTPUT_PATH}`) + try { + execSync(`signtool remove /s ${OUTPUT_PATH}`) + } catch {} execSync( [