From 922b77c2152beb45163a136640edf97249284014 Mon Sep 17 00:00:00 2001 From: alexzhang1030 <1642114555@qq.com> Date: Wed, 17 Jan 2024 12:07:22 +0800 Subject: [PATCH] fix(electron): should not encode the app file path --- packages/electron/src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/electron/src/cli.ts b/packages/electron/src/cli.ts index e1a279ab..6da9db54 100644 --- a/packages/electron/src/cli.ts +++ b/packages/electron/src/cli.ts @@ -2,7 +2,7 @@ import { execaSync } from 'execa' import electron from 'electron' import { resolve } from 'pathe' -const appPath = resolve(new URL('../dist/app.cjs', import.meta.url).pathname) +const appPath = decodeURIComponent(resolve(new URL('../dist/app.cjs', import.meta.url).pathname)) const argv = process.argv.slice(2) const result = execaSync(electron as unknown as string, [appPath].concat(argv), {