Skip to content

Commit

Permalink
fix: Add cross-platform cleanup for .syso files during Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
ansxuman committed Dec 1, 2024
1 parent 1c34c25 commit d15e85f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion v3/internal/commands/build_assets/Taskfile.windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ tasks:
- task: generate:syso
cmds:
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}.exe
- powershell Remove-item *.syso
- cmd: powershell Remove-item *.syso
platforms: [windows]
- cmd: rm -f *.syso
platforms: [linux, darwin]
vars:
BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}'
env:
Expand Down

0 comments on commit d15e85f

Please sign in to comment.