Skip to content

Commit b8498a6

Browse files
committed
fixed go releaser and release workflow
1 parent c1c2598 commit b8498a6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
with:
2424
go-version: "1.24.4"
2525

26+
- name: Install go-winres (for Windows icon embedding)
27+
run: go install github.com/tc-hib/go-winres@latest
28+
2629
- name: Run tests
2730
run: go test ./...
2831

@@ -63,6 +66,9 @@ jobs:
6366
with:
6467
go-version: "1.24.4"
6568

69+
- name: Install go-winres (for Windows icon embedding)
70+
run: go install github.com/tc-hib/go-winres@latest
71+
6672
- name: Verify Chocolatey installation
6773
shell: pwsh
6874
run: choco --version

.goreleaser.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ dist: dist
77
before:
88
hooks:
99
- go mod tidy
10+
# Generate Windows resources (icon, version info) for Windows builds
11+
# Note: This will only work on Windows, but won't fail on other platforms
12+
# Use git-tag special value to automatically get version from git tag
13+
- cmd: go-winres make --in build/winres.json --out rsrc --file-version git-tag --product-version git-tag || true
1014

1115
builds:
1216
- id: fontget
@@ -143,15 +147,15 @@ chocolateys:
143147
owners: "Graphixa"
144148
authors: "Graphixa"
145149
project_url: "https://github.com/Graphixa/FontGet"
146-
project_source_url: "https://github.com/Graphixa/FontGet"
147150
package_source_url: "https://github.com/Graphixa/FontGet"
148151
description: "A tiny, cross-platform CLI tool to install and manage fonts from the command line. Search for fonts, list installed fonts, install or remove fonts all from the CLI."
149152
summary: "Install and manage fonts from the command line"
150-
tags: "fonts,font-manager,cli,cross-platform"
153+
tags: "fonts font-manager cli cross-platform"
151154
license_url: "https://github.com/Graphixa/FontGet/blob/main/LICENSE"
152155
release_notes: "https://github.com/Graphixa/FontGet/releases/tag/v{{ .Version }}"
153156
bug_tracker_url: "https://github.com/Graphixa/FontGet/issues"
154157
docs_url: "https://github.com/Graphixa/FontGet/blob/main/README.md"
158+
icon_url: "https://raw.githubusercontent.com/Graphixa/FontGet/main/assets/icon.png"
155159

156160
# Winget (Windows) - Automated PRs to microsoft/winget-pkgs
157161
winget:

0 commit comments

Comments
 (0)