From 8d0eaafceb10c2f17a0636cf2d4571d76489c7b2 Mon Sep 17 00:00:00 2001 From: devsavsis Date: Sun, 30 Aug 2026 19:06:18 +0500 Subject: [PATCH] fix: wrap cleanup unlinkSync in try-catch (CI) --- patch_icon3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch_icon3.js b/patch_icon3.js index 88d84bd..00f911c 100644 --- a/patch_icon3.js +++ b/patch_icon3.js @@ -104,7 +104,7 @@ total += replaceNum(full, pos.PRELUDE_POSITION, newPRP) console.log(`total patches: ${total}`) fs.writeFileSync(EXE, full) -fs.unlinkSync(EXE + '.notail').catch?.(() => {}) +try { fs.unlinkSync(EXE + '.notail') } catch {} try { fs.unlinkSync(CLEAN + '.pe_only') } catch {} console.log(`done: ${EXE} = ${full.length} bytes`)