now working

This commit is contained in:
Mylloon 2023-07-29 15:30:41 +02:00
parent 407e2fc84f
commit 40beeedf1a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
4 changed files with 9 additions and 2 deletions

View file

@ -7,6 +7,6 @@
## Dev
```bash
npm install --platform=win32
npm install
npm run package
```

View file

@ -14,5 +14,7 @@
Nous utilisons Node.js <span id="node-version"></span>, Chromium
<span id="chrome-version"></span>, et Electron
<span id="electron-version"></span>.
<script src="../dist/renderer.js"></script>
</body>
</html>

View file

@ -11,8 +11,12 @@ const createWindow = () => {
},
});
win.loadFile("../index.html");
win.loadFile(path.join(path.resolve(__dirname, ".."), "pages", "index.html"));
};
// Fix crash on Windows
app.commandLine.appendSwitch("disable-gpu-sandbox");
app.whenReady().then(() => {
createWindow();

1
src/renderer.ts Normal file
View file

@ -0,0 +1 @@
console.log("hello");