now working
This commit is contained in:
parent
407e2fc84f
commit
40beeedf1a
4 changed files with 9 additions and 2 deletions
|
@ -7,6 +7,6 @@
|
|||
## Dev
|
||||
|
||||
```bash
|
||||
npm install --platform=win32
|
||||
npm install
|
||||
npm run package
|
||||
```
|
||||
|
|
|
@ -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>
|
|
@ -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
1
src/renderer.ts
Normal file
|
@ -0,0 +1 @@
|
|||
console.log("hello");
|
Loading…
Reference in a new issue