diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..cac9556c0d355aa518ba9ad792a02ace748a7f78 --- /dev/null +++ b/Makefile @@ -0,0 +1,5 @@ +prepare: + yarn install + +run: + yarn start --no-sandbox diff --git a/README.md b/README.md index 8cfd54308322f7a0f4d58e695725c5fbfe7962af..6b39f603704858aa1f596852d5bcfa79cbd774e1 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,9 @@ This readme is to be written # Prerequisites yarn (nodejs + electron) + +# How to + +To prepare or update: `make prepare` + +To run: `make run` diff --git a/instance/index.html b/instance/index.html index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..c37a7e92406e836eeae148c3f56f25c766b6e479 100644 --- a/instance/index.html +++ b/instance/index.html @@ -0,0 +1,3 @@ +<body> + toto +</body> diff --git a/instance/main.js b/instance/main.js index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..bcd71db04b2237daf79e67663638b1f0c07676d3 100644 --- a/instance/main.js +++ b/instance/main.js @@ -0,0 +1,18 @@ +const electron = require('electron') +const { app, BrowserWindow } = require('electron') + +function createWindow () { + // Create the browser window. + const win = new BrowserWindow({ + width: 800, + height: 600, + webPreferences: { + nodeIntegration: true + } + }) + + // and load the index.html of the app. + win.loadFile('instance/index.html') +} + +app.whenReady().then(createWindow)