-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(electron): compatible with windows (#153)
- Loading branch information
1 parent
fa24276
commit 54de0e5
Showing
5 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { execaSync } from 'execa' | ||
import electron from 'electron' | ||
import { resolve } from 'pathe' | ||
|
||
const appPath = new URL('../dist/app.cjs', import.meta.url).pathname | ||
const appPath = 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), { | ||
stdio: 'ignore', | ||
windowsHide: false, | ||
}) | ||
|
||
process.exit(result.exitCode) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.