update with a tree
This commit is contained in:
parent
f82590b9ab
commit
2276357f72
1 changed files with 15 additions and 2 deletions
|
@ -146,11 +146,24 @@ of the main process.
|
||||||
|
|
||||||
e.g.
|
e.g.
|
||||||
|
|
||||||
|
```
|
||||||
|
project/
|
||||||
|
├── main
|
||||||
|
│ ├── foo.js
|
||||||
|
│ └── index.js
|
||||||
|
├── package.json
|
||||||
|
└── renderer
|
||||||
|
└── index.js
|
||||||
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// main process: main/index.js
|
// main process: main/index.js
|
||||||
const { app, ipcMain } = require('electron')
|
const { app } = require('electron')
|
||||||
app.on('ready', () => {
|
app.on('ready', () => {
|
||||||
//...
|
|
||||||
|
// ...
|
||||||
|
|
||||||
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue