Skip to content

Commit

Permalink
Force rebuild each time to pick up .h changes Tidy up go.mod. Bump ve…
Browse files Browse the repository at this point in the history
…rsion.
  • Loading branch information
leaanthony committed Jan 5, 2021
1 parent e44f2fe commit 9be539c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v2/cmd/wails/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

var version = "v2.0.0-alpha.4"
var version = "v2.0.0-alpha.5"
2 changes: 1 addition & 1 deletion v2/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 7 additions & 0 deletions v2/pkg/commands/build/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9be539c

Please sign in to comment.