* Add frontend:dev:install configuration
* When building the frontend in dev mode, use `frontend:dev:install` (if it has been defined) to install the dependencies
* Simplified logic for determining installation command
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
* Override platform with GOOS and GOARCH
* Update v2/cmd/wails/internal/commands/build/build.go
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
* Only use GOOS and GOARCH env vars for default target
* Update docs. Add dryrun flag for testing
* Update v2/cmd/wails/internal/commands/build/build.go
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
* Fix scenario where no arch specified
* Fixed banner
Co-authored-by: stffabi <stffabi@users.noreply.github.com>
* [v2] Add support for post build hooks
Currently only supports build-level hooks
* [v2] Improve build assets handling and use single source for manifest generation
The manifest asset files are now a go template and data will be
resolved before they are included into the build output.
Breaking Change: Windows manifest file must be named
“wails.exe.manifest” and doesn’t depend on the project name
anymore.
* [v2, windows] NSIS installer generation
* Add os.O_WRONLY to icon.ico to avoid bad file descriptor error
* Wrap errors coming from winres.LoadICO()
If the file exists but is empty, a blunt "Unexpected EOF" is returned, and propagated as is.
This is not super helpful when trying to pin point what's going on.
Wrapping the error helps to locate the problem.
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>