mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
Update NSIS guide
This commit is contained in:
@@ -2,10 +2,16 @@
|
||||
|
||||
Wails supports generating Windows installers using the [NSIS installer](https://nsis.sourceforge.io/).
|
||||
|
||||
<p style={{"text-align": "center"}}>
|
||||
<img src="/img/nsis.png"></img><br/>
|
||||
</p>
|
||||
|
||||
## Installing NSIS
|
||||
|
||||
### Windows
|
||||
|
||||
The installer is available on the [NSIS Download](https://nsis.sourceforge.io/Download) page.
|
||||
|
||||
If you use the chocolatey package manager, run the following script:
|
||||
```
|
||||
choco install nsis
|
||||
@@ -23,11 +29,23 @@ NSIS is available to install through homebrew: `brew install nsis`.
|
||||
|
||||
## Generating the installer
|
||||
|
||||
When a new project is created, Wails generates a `.nsi` installer script in `build/windows/installer`.
|
||||
When a new project is created, Wails generates a `.nsi` installer script in `build/windows/installer`. The config
|
||||
data is read from the project's `wails.json` so you can use this to configure the installer:
|
||||
|
||||
```json
|
||||
// ...
|
||||
"Info": {
|
||||
"companyName": "wailsvite",
|
||||
"productName": "wailsvite",
|
||||
"productVersion": "1.0.0",
|
||||
"copyright": "Copyright.........",
|
||||
"comments": "Built using Wails (https://wails.app)"
|
||||
},
|
||||
```
|
||||
|
||||
To generate an installer for your application, use the `-nsis` flag with `wails build`:
|
||||
```
|
||||
wails build -nsis
|
||||
```
|
||||
|
||||
|
||||
The installer will now be available in the `build/bin` directory.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 393 KiB |
Reference in New Issue
Block a user