Docs: separate electron installation into builder and forge sections

This commit is contained in:
Ymihere03 2024-11-11 09:46:45 -07:00 committed by Lovell Fuller
parent 06b08bf10f
commit eba82a8ba5
2 changed files with 20 additions and 2 deletions

View File

@ -236,8 +236,10 @@ custom:
### electron ### electron
#### electron-builder
Ensure `sharp` is unpacked from the ASAR archive file using the 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. option.
```json ```json
@ -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 ### vite
Ensure `sharp` is excluded from bundling via the Ensure `sharp` is excluded from bundling via the

File diff suppressed because one or more lines are too long