Skip to content

Commit 645f87a

Browse files
committed
update wails
1 parent 4ffc630 commit 645f87a

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Taskfile.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ tasks:
3232
cmds:
3333
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/rlbotgui.exe
3434
vars:
35-
BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}'
35+
BUILD_FLAGS: '{{if ne .DEV "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}'
3636
env:
3737
GOOS: windows
3838
CGO_ENABLED: 1
3939
GOARCH: "{{.ARCH | default ARCH}}"
4040
CC: x86_64-w64-mingw32-gcc
41-
PRODUCTION: '{{.PRODUCTION | default "false"}}'
41+
DEV: '{{.DEV | default "true"}}'
4242

4343
build:windows:
4444
summary: Builds the application for Windows
@@ -63,12 +63,12 @@ tasks:
6363
cmds:
6464
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/rlbotgui
6565
vars:
66-
BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s"{{else}}-gcflags=all="-l"{{end}}'
66+
BUILD_FLAGS: '{{if ne .DEV "true"}}-tags production -trimpath -ldflags="-w -s"{{else}}-gcflags=all="-l"{{end}}'
6767
env:
6868
GOOS: linux
6969
CGO_ENABLED: 1
7070
GOARCH: "{{.ARCH | default ARCH}}"
71-
PRODUCTION: '{{.PRODUCTION | default "false"}}'
71+
DEV: '{{.DEV | default "true"}}'
7272

7373
build:linux:
7474
summary: Builds the application for Linux

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require (
1010
github.com/ncruces/zenity v0.10.14
1111
github.com/ulikunitz/xz v0.5.15
1212
github.com/wailsapp/mimetype v1.4.1
13-
github.com/wailsapp/wails/v3 v3.0.0-alpha.36
13+
github.com/wailsapp/wails/v3 v3.0.0-alpha.40
1414
)
1515

1616
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ github.com/wailsapp/go-webview2 v1.0.22 h1:YT61F5lj+GGaat5OB96Aa3b4QA+mybD0Ggq6N
123123
github.com/wailsapp/go-webview2 v1.0.22/go.mod h1:qJmWAmAmaniuKGZPWwne+uor3AHMB5PFhqiK0Bbj8kc=
124124
github.com/wailsapp/mimetype v1.4.1 h1:pQN9ycO7uo4vsUUuPeHEYoUkLVkaRntMnHJxVwYhwHs=
125125
github.com/wailsapp/mimetype v1.4.1/go.mod h1:9aV5k31bBOv5z6u+QP8TltzvNGJPmNJD4XlAL3U+j3o=
126-
github.com/wailsapp/wails/v3 v3.0.0-alpha.36 h1:GQ8vSrFgafITwMd/p4k+WBjG9K/anma9Pk2eJ/5CLsI=
127-
github.com/wailsapp/wails/v3 v3.0.0-alpha.36/go.mod h1:7i8tSuA74q97zZ5qEJlcVZdnO+IR7LT2KU8UpzYMPsw=
126+
github.com/wailsapp/wails/v3 v3.0.0-alpha.40 h1:LY0hngVwihlSXveshL5LM8ivjLTHAN6VDjOSF6szI9k=
127+
github.com/wailsapp/wails/v3 v3.0.0-alpha.40/go.mod h1:7i8tSuA74q97zZ5qEJlcVZdnO+IR7LT2KU8UpzYMPsw=
128128
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
129129
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
130130
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=

justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
os_family := if os_family() == "unix" { "linux" } else { os_family() }
2-
prod := env("PRODUCTION", "true")
2+
dev := env("DEV", "false")
33

44
build OS = os_family:
5-
PRODUCTION={{prod}} wails3 task build:{{OS}}
5+
DEV={{dev}} wails3 task build:{{OS}}
66

77
dev:
88
wails3 dev

0 commit comments

Comments
 (0)