From e6881b8c512e165217a75023b83e679af29dd925 Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Sat, 9 Nov 2024 08:25:20 +0530 Subject: [PATCH] fix(util): resolve path for icon --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index c620fbac..9d67f544 100644 --- a/src/util.js +++ b/src/util.js @@ -230,7 +230,7 @@ export const parse = async (options, pkg) => { /* Remove special and control characters from app.name to mitigate potential path traversal. */ options.app.name = options.app.name.replace(/[<>:"/\\|?*\u0000-\u001F]/g, ''); } - options.app.icon = options.app.icon ?? undefined; + options.app.icon = path.resolve(options.app.icon) ?? undefined; // TODO(#737): move this out if (options.platform === 'linux') {