feat: electron dev

This commit is contained in:
cha0s 2022-04-03 11:39:00 -05:00
parent 21651586c0
commit 1311b12e59
3 changed files with 11 additions and 0 deletions

View File

@ -51,6 +51,7 @@
window:
- '@persea/core'
- '...'
url: 'https://persea.local.cha0s.io'
'@flecks/governor': {}
'@flecks/web': {}
'@flecks/web/client':

View File

@ -26,6 +26,7 @@ export default {
),
'@flecks/electron/server.window': async (win) => {
win.removeMenu();
win.openDevTools();
win.maximize();
win.once('ready-to-show', () => {
win.show();

View File

@ -0,0 +1,9 @@
diff --git a/node_modules/electron/cli.js b/node_modules/electron/cli.js
index 09f4677..b64bb88 100755
--- a/node_modules/electron/cli.js
+++ b/node_modules/electron/cli.js
@@ -23,3 +23,4 @@ const handleTerminationSignal = function (signal) {
handleTerminationSignal('SIGINT');
handleTerminationSignal('SIGTERM');
+handleTerminationSignal('SIGUSR2');