-
I want to build Windows binaries that include an icon. This is what my file tree looks like. It contains 3 separate binaries:
I first run these commands, which I have also added to my
When running In each subdirectory, I have one file called The
If I were to run the following commands by hand, I would successfully build an
If I then browse to this folder in the Windows I am trying to get this working in my project_name: my_project
before:
hooks:
- go get github.com/josephspurrier/goversioninfo/cmd/goversioninfo
- go generate ./..
builds:
- main: ./cmd/a/main.go
id: "a"
binary: a
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
goarm:
- 7 The When running:
the What do I need to change in my Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I just figured this out. This is what I changed in my builds:
- main: .
id: "a"
binary: a
dir: ./cmd/a Are there any problems with this type of configuration? In case anyone else is interested, here is my working https://github.com/jftuga/sqs_clipboard/blob/main/.goreleaser.yml |
Beta Was this translation helpful? Give feedback.
I just figured this out.
This is what I changed in my
.goreleaser.yml
file:Are there any problems with this type of configuration?
In case anyone else is interested, here is my working
.goreleaser.yml
file:https://github.com/jftuga/sqs_clipboard/blob/main/.goreleaser.yml