diff --git a/v3/examples/build/Taskfile.yml b/v3/examples/build/Taskfile.yml index 332eb6086..f4e5e1f15 100644 --- a/v3/examples/build/Taskfile.yml +++ b/v3/examples/build/Taskfile.yml @@ -78,7 +78,7 @@ tasks: platforms: - windows cmds: - - wails3 generate syso -arch {{.GOARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso + - wails3 generate syso -arch {{.GOARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails_windows.syso vars: GOARCH: '{{.GOARCH}}' @@ -93,7 +93,7 @@ tasks: vars: GOARCH: amd64 - go build -tags production -ldflags="-w -s -H windowsgui" -o bin/{{.APP_NAME}} - - powershell Remove-item wails.syso + - powershell Remove-item *.syso package:windows:arm64: @@ -105,6 +105,6 @@ tasks: vars: GOARCH: arm64 - go build -tags production -ldflags="-w -s -H windowsgui" -o bin/buildtest.arm64.exe - - powershell Remove-item wails.syso + - powershell Remove-item *.syso env: GOARCH: arm64 diff --git a/v3/examples/dev/Taskfile.yml b/v3/examples/dev/Taskfile.yml index 9886a67cc..8d2d46716 100644 --- a/v3/examples/dev/Taskfile.yml +++ b/v3/examples/dev/Taskfile.yml @@ -166,7 +166,7 @@ tasks: dir: build platform: windows cmds: - - wails generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso + - wails generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json vars: ARCH: $GOARCH @@ -180,4 +180,4 @@ tasks: vars: ARCH: amd64 - go build -tags production -ldflags="-w -s -H windowsgui" -o bin/{{.APP_NAME}}.exe - - powershell Remove-item wails.syso + - powershell Remove-item *.syso diff --git a/v3/examples/dialogs/Taskfile.yml b/v3/examples/dialogs/Taskfile.yml index 51fbd49ac..90ac01145 100644 --- a/v3/examples/dialogs/Taskfile.yml +++ b/v3/examples/dialogs/Taskfile.yml @@ -75,7 +75,7 @@ tasks: platforms: - windows cmds: - - wails3 generate syso -arch {{.GOARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso + - wails3 generate syso -arch {{.GOARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json vars: GOARCH: '{{.GOARCH}}' @@ -90,7 +90,7 @@ tasks: vars: GOARCH: amd64 - go build -tags production -gcflags=all="-N -l" -o bin/{{.APP_NAME}} - - powershell Remove-item wails.syso + - powershell Remove-item *.syso package:windows:arm64: @@ -102,6 +102,6 @@ tasks: vars: GOARCH: arm64 - go build -tags production -ldflags="-w -s -H windowsgui" -o bin/buildtest.arm64.exe - - powershell Remove-item wails.syso + - powershell Remove-item *.syso env: GOARCH: arm64 diff --git a/v3/examples/file-association/build/Taskfile.windows.yml b/v3/examples/file-association/build/Taskfile.windows.yml index f815bd0ae..f141fcd2f 100644 --- a/v3/examples/file-association/build/Taskfile.windows.yml +++ b/v3/examples/file-association/build/Taskfile.windows.yml @@ -13,6 +13,7 @@ tasks: - task: generate:syso cmds: - go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}.exe + - powershell Remove-item *.syso vars: BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}' env: @@ -30,7 +31,7 @@ tasks: summary: Generates Windows `.syso` file dir: build cmds: - - wails3 generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso + - wails3 generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json vars: ARCH: '{{.ARCH | default ARCH}}' diff --git a/v3/internal/commands/build_assets/Taskfile.windows.yml b/v3/internal/commands/build_assets/Taskfile.windows.yml index f815bd0ae..c893f1cc1 100644 --- a/v3/internal/commands/build_assets/Taskfile.windows.yml +++ b/v3/internal/commands/build_assets/Taskfile.windows.yml @@ -13,6 +13,7 @@ tasks: - task: generate:syso cmds: - go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}.exe + - powershell Remove-item *.syso vars: BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}' env: @@ -30,7 +31,7 @@ tasks: summary: Generates Windows `.syso` file dir: build cmds: - - wails3 generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso + - wails3 generate syso -arch {{.ARCH}} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails_windows_{{.ARCH}}.syso vars: ARCH: '{{.ARCH | default ARCH}}' diff --git a/v3/internal/templates/_base/default/Taskfile.tmpl.yml b/v3/internal/templates/_base/default/Taskfile.tmpl.yml index 924d31598..9b89ad87d 100644 --- a/v3/internal/templates/_base/default/Taskfile.tmpl.yml +++ b/v3/internal/templates/_base/default/Taskfile.tmpl.yml @@ -172,7 +172,7 @@ tasks: dir: build platform: windows cmds: - - wails generate syso -arch {{ "{{.ARCH}}" }} -icon icon.ico -manifest wails.exe.manifest -info info.json -out ../wails.syso + - wails generate syso -arch {{ "{{.ARCH}}" }} -icon icon.ico -manifest wails.exe.manifest -info info.json vars: ARCH: $GOARCH @@ -186,4 +186,4 @@ tasks: vars: ARCH: amd64 - go build -tags production -ldflags="-w -s -H windowsgui" -o bin/{{ "{{.APP_NAME}}" }}.exe - - powershell Remove-item wails.syso + - powershell Remove-item *.syso