Update NSIS guide

This commit is contained in:
Lea Anthony
2022-03-31 11:24:35 +11:00
parent f55f965b3d
commit 5ead563989
2 changed files with 20 additions and 2 deletions
+20 -2
View File
@@ -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