wails icon indicating copy to clipboard operation
wails copied to clipboard

Production Build NSIS ERROR: cannot build nsis installer - no windows targets

Open allcapsc opened this issue 4 years ago • 1 comments

Description

Throws error on wails build -nsis -clean

PS C:\Users\Sanch\Downloads\myproject> wails build -clean -nsis
Wails CLI v2.0.0-beta.43

App Type:               desktop
Platforms:              windows/amd64
Compiler:               C:\Program Files\Go\bin\go.exe
Build Mode:             Production
Skip Frontend:          false
Compress:               false
Package:                true
Clean Build Dir:        true
LDFlags:                ""
Tags:                   []
Race Detector:          false

Building target: windows/amd64
------------------------------
  - Installing frontend dependencies: Done.
  - Compiling frontend: Done.
  - Generating bundle assets: Done.
  - Compiling application: Done.
Built 'C:\Users\Sanch\Downloads\myproject\build\bin\myproject.exe' in 12.607s.



ERROR: cannot build nsis installer - no windows targets

To Reproduce

wails init -n myproject -t vue
wails build -nsis -clean

Expected behaviour

Build For Production NSIS Without Error

Screenshots

No response

Attempted Fixes

No response

System Details

C:\Users\Sanch>wails doctor
Wails CLI v2.0.0-beta.43

Scanning system - Please wait (this may take a long time)...Done.

System
------
OS:             Windows 10 Home
Version:        2009 (Build: 22000)
ID:             21H2
Go Version:     go1.18
Platform:       windows
Architecture:   amd64

Wails
------
Version:        v2.0.0-beta.43

Dependency      Package Name    Status          Version
----------      ------------    ------          -------
WebView2        N/A             Installed       104.0.1293.63
npm             N/A             Installed       8.16.0
*upx            N/A             Available
*nsis           N/A             Installed       v3.08

* - Optional Dependency

Diagnosis
---------
Your system is ready for Wails development!
Optional package(s) installation details:
  - upx : Available at https://upx.github.io/

Additional context

No response

allcapsc avatar Aug 23 '22 04:08 allcapsc

Thanks for reporting this issue and using Wails.

This issue has been fixed in the latest release https://github.com/wailsapp/wails/releases/tag/v2.0.0-beta.44.2

Please update to the latest beta and the problem should be solved.

Thanks 🙏, please reopen if you find any further problems.

stffabi avatar Aug 23 '22 04:08 stffabi