Skip to content
Extraits de code Groupes Projets
Vérifiée Valider fc966f15 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

MISC: Bootstrap main.js and Makefile

Makefile is here to not forget the commands and the --no-sandbox,
electron not working otherwise.
parent 689bf954
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
prepare:
yarn install
run:
yarn start --no-sandbox
......@@ -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`
<body>
toto
</body>
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)
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter