Skip to content

Commit

Permalink
Docs: separate electron installation into builder and forge sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Ymihere03 authored and lovell committed Nov 18, 2024
1 parent 06b08bf commit eba82a8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 19 additions & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,10 @@ custom:
### electron
#### electron-builder
Ensure `sharp` is unpacked from the ASAR archive file using the
[asarUnpack](https://www.electron.build/configuration/configuration.html)
[asarUnpack](https://www.electron.build/app-builder-lib.interface.platformspecificbuildoptions#asarunpack)
option.

```json
Expand All @@ -252,6 +254,22 @@ option.
}
```

#### electron-forge

Ensure `sharp` is unpacked from the ASAR archive file using the
[unpack](https://js.electronforge.io/interfaces/_electron_forge_maker_squirrel.InternalOptions.Options.html#asar)
option.

```json
{
"packagerConfig": {
"asar": {
"unpack": "**/node_modules/{sharp,@img}/**/*"
}
}
}
```

### vite

Ensure `sharp` is excluded from bundling via the
Expand Down
Loading

0 comments on commit eba82a8

Please sign in to comment.