From ef01a94ae784cd6151bda6ce695044320a84736e Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Fri, 21 Feb 2025 11:45:04 -0800 Subject: [PATCH 1/2] Add macOS and Windows builds, fix deprecated directives --- .goreleaser.yaml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8f64724..4cf74da 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,27 +1,20 @@ version: 2 -before: - hooks: - - go mod tidy builds: - env: - CGO_ENABLED=0 - - PACKAGE=github.com/cterence/tailout - ldflags: - - -X ${PACKAGE}/internal/version.Version=${VERSION} - - -X ${PACKAGE}/internal/version.CommitHash=${COMMIT_HASH} - - -X ${PACKAGE}/internal/version.BuildTimestamp=${BUILD_TIMESTAMP} goos: - linux - main: ./ + - darwin + - windows binary: tailout archives: - format_overrides: - goos: windows - format: zip + formats: ['zip'] checksum: name_template: "checksums.txt" snapshot: - name_template: "{{ .Tag }}-next" + version_template: "{{ .Tag }}-next" changelog: sort: asc use: github From 83c80cf91f7e530d77a3679e8b301f1b56d09c18 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Fri, 21 Feb 2025 11:50:59 -0800 Subject: [PATCH 2/2] Add dist to .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index a2f2712..bac5b6c 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,6 @@ config.yaml tmp/ bin/ + +# GoReleaser +dist/