Skip to content

Commit

Permalink
fix(electron): cannot launch electron (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHole1 committed May 18, 2021
1 parent 607d803 commit 4657a87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion desktop/main-app/scripts/Launch-electron.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require("path");
const nodemon = require("nodemon");

const distPath = path.resolve(__dirname, "..", "dist", "main", "main.js");
const distPath = path.resolve(__dirname, "..", "dist", "main.js");

nodemon(`nodemon --watch ${distPath} --exec "electron ${distPath}"`).on("quit", () => {
process.exit();
Expand Down
2 changes: 1 addition & 1 deletion desktop/main-app/src/utils/Runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const staticPath = isProduction

const preloadPath = isProduction
? path.join(__dirname, "preload.js")
: path.resolve(__dirname, "..", "..", "dist", "main", "preload.js");
: path.resolve(__dirname, "..", "..", "dist", "preload.js");

// eslint-disable-next-line @typescript-eslint/no-var-requires
const appVersion = isProduction ? app.getVersion() : require("../../package.json").version;
Expand Down

0 comments on commit 4657a87

Please sign in to comment.