diff --git a/v2/cmd/wails/version.go b/v2/cmd/wails/version.go index 1bd99ffb3d7..6c579e88835 100644 --- a/v2/cmd/wails/version.go +++ b/v2/cmd/wails/version.go @@ -1,3 +1,3 @@ package main -var version = "v2.0.0-alpha.4" +var version = "v2.0.0-alpha.5" diff --git a/v2/go.mod b/v2/go.mod index 4604933f362..abe0a62afbf 100644 --- a/v2/go.mod +++ b/v2/go.mod @@ -1,6 +1,6 @@ module github.com/wailsapp/wails/v2 -go 1.13 +go 1.15 require ( github.com/davecgh/go-spew v1.1.1 diff --git a/v2/pkg/commands/build/base.go b/v2/pkg/commands/build/base.go index 02e7f105c7a..fb6f0174786 100644 --- a/v2/pkg/commands/build/base.go +++ b/v2/pkg/commands/build/base.go @@ -148,6 +148,13 @@ func (b *BaseBuilder) CompileProject(options *Options) error { // Default go build command commands := slicer.String([]string{"build"}) + // TODO: Work out if we can make this more efficient + // We need to do a full build as CGO doesn't detect updates + // to .h files, and we package assets into .h file. We could + // potentially try and see if the assets have changed but will + // this take as much time as a `-a` build? + commands.Add("-a") + var tags slicer.StringSlicer tags.Add(options.OutputType)