Skip to content

Commit 03ba8e2

Browse files
fix(electron): decode app file path (#176)
1 parent 8f5801f commit 03ba8e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/electron/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { execaSync } from 'execa'
22
import electron from 'electron'
33
import { resolve } from 'pathe'
44

5-
const appPath = resolve(new URL('../dist/app.cjs', import.meta.url).pathname)
5+
const appPath = decodeURIComponent(resolve(new URL('../dist/app.cjs', import.meta.url).pathname))
66
const argv = process.argv.slice(2)
77

88
const result = execaSync(electron as unknown as string, [appPath].concat(argv), {

0 commit comments

Comments
 (0)