File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 22
33version : 2
44
5+ project_name : claude-mux
6+
57before :
68 hooks :
79 - go mod tidy
@@ -43,9 +45,10 @@ archives:
4345 {{- else if eq .Arch "386" }}i386
4446 {{- else }}{{ .Arch }}{{ end }}
4547 {{- if .Arm }}v{{ .Arm }}{{ end }}
48+ formats : [ 'tar.gz' ]
4649 format_overrides :
4750 - goos : windows
48- format : zip
51+ formats : [ ' zip' ]
4952 files :
5053 - README.md
5154 - LICENSE
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ GOIMPORTS_VERSION := v0.36.0
1111GOLANGCI_VERSION := v2.4.0
1212GOTESTSUM_VERSION := v1.12.3
1313GOSEC_VERSION := v2.22.8
14+ GORELEASER_VERSION =v2.11.2
1415
1516# Install development dependencies
1617dev-deps :
@@ -19,6 +20,7 @@ dev-deps:
1920 go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(GOLANGCI_VERSION )
2021 go install gotest.tools/gotestsum@$(GOTESTSUM_VERSION )
2122 go install github.com/securego/gosec/v2/cmd/gosec@$(GOSEC_VERSION )
23+ go install github.com/goreleaser/goreleaser/v2@${GORELEASER_VERSION}
2224 @echo " Development dependencies installed!"
2325
2426# Build the binary
@@ -80,11 +82,21 @@ check: fmt vet lint security test
8082
8183# Test release with goreleaser
8284release-dry :
83- goreleaser release --snapshot --clean
85+ @if command -v goreleaser > /dev/null; then \
86+ goreleaser release --snapshot --clean; \
87+ else \
88+ echo " goreleaser not installed. Run 'make dev-deps' first" ; \
89+ exit 1; \
90+ fi
8491
8592# Create a new release (requires tag)
8693release :
87- goreleaser release --clean
94+ @if command -v goreleaser > /dev/null; then \
95+ goreleaser release --clean; \
96+ else \
97+ echo " goreleaser not installed. Run 'make dev-deps' first" ; \
98+ exit 1; \
99+ fi
88100
89101# Run the binary
90102run : build
You can’t perform that action at this time.
0 commit comments