Skip to content

Commit

Permalink
CRISTAL-444: And error message is presented to the user when starting…
Browse files Browse the repository at this point in the history
… electron with default parameters
  • Loading branch information
manuelleduc committed Jan 30, 2025
1 parent 4b3d85b commit 8351286
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions electron/.electron-builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ module.exports = async function () {
executableName: "cristal",
target: "nsis",
},
afterPack: "electron-builder-sandbox-fix",
};
};
2 changes: 0 additions & 2 deletions electron/main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,3 @@ if (import.meta.env.PROD) {
)
.catch((e) => console.error("Failed check and install updates:", e));
}

app.commandLine.appendSwitch("--no-sandbox");
1 change: 1 addition & 0 deletions electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"devDependencies": {
"electron": "34.0.1",
"electron-builder": "25.1.8",
"electron-builder-sandbox-fix": "1.0.11",
"typescript": "5.7.3",
"vite": "6.0.11"
}
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8351286

Please sign in to comment.