Skip to content

Commit

Permalink
fix: update flags in goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
danstis committed Jul 15, 2023
1 parent 0abd203 commit 5f8121d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .build.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
$Version = GitVersion.exe | ConvertFrom-Json
goversioninfo -64 -product-version="$($Version.SemVer)" -ver-major="$($Version.Major)" -ver-minor="$($Version.Minor)" -ver-patch="$($Version.Patch)" -product-ver-major="$($Version.Major)" -product-ver-minor="$($Version.Minor)" -product-ver-patch="$($Version.Patch)"
go build -ldflags "-H=windowsgui -X main.Version=$($Version.SemVer)"
go build -ldflags "-H=windowsgui -X main.version=$($Version.SemVer)"
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ builds:
goos:
- windows
ldflags:
- -H=windowsgui -X main.Version={{.Version}}
- -H=windowsgui
mod_timestamp: "{{.CommitTimestamp}}"
ignore:
- goarch: arm64
Expand Down

0 comments on commit 5f8121d

Please sign in to comment.