From 365178b06d02ef2f7cfeb5a519af3c17d7b01d31 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Mon, 7 Oct 2024 22:29:39 -0300 Subject: [PATCH] fix: update normalize path --- src/main/helpers/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/helpers/index.ts b/src/main/helpers/index.ts index e50b4422..db5569c8 100644 --- a/src/main/helpers/index.ts +++ b/src/main/helpers/index.ts @@ -30,4 +30,4 @@ export const isPortableVersion = () => process.env.PORTABLE_EXECUTABLE_FILE !== null; export const normalizePath = (str: string) => - path.normalize(str.replace(/\\/g, "/")); + path.posix.normalize(str).replace(/\\/g, "/");