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), {