Skip to content

Commit

Permalink
fix(electron): should not encode the app file path
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1030 committed Jan 17, 2024
1 parent 8f5801f commit 922b77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/electron/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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), {
Expand Down

0 comments on commit 922b77c

Please sign in to comment.