From 011c651e5e5404387d9f9e1723871e4804ab441d Mon Sep 17 00:00:00 2001 From: Tyler Johnson Date: Tue, 30 Sep 2025 11:47:04 -0400 Subject: [PATCH] Fix --app-exclude for Linux --- lib/package.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/package.js b/lib/package.js index a352fa3..2f446a9 100644 --- a/lib/package.js +++ b/lib/package.js @@ -113,7 +113,7 @@ const appdata = commonTools.appdata; if (options.excludefiles instanceof Array) { this.excludeFiles = options.excludefiles.map(filePath => { if (filePath && filePath.length) - filePath = filePath.replace(/(^\\|^)/i, "\\").replaceAll(/\\/gi, "\\\\"); + filePath = filePath.replace(/(^\\|^\/|^)/i, path.sep).replaceAll(/\\/gi, "\\\\"); return filePath; }); } else {