Skip to content

Commit 6c60742

Browse files
committed
build update
1 parent 1df13ff commit 6c60742

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

.goreleaser.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Build customization
2+
builds:
3+
- id: txeh
4+
# Path to main.go file.
5+
# Default is `main.go`
6+
main: ./util/txeh.go
7+
binary: txeh
8+
9+
env:
10+
- CGO_ENABLED=0
11+
12+
# GOOS list to build in.
13+
# For more info refer to https://golang.org/doc/install/source#environment
14+
# Defaults are darwin and linux
15+
goos:
16+
- linux
17+
- darwin
18+
- windows
19+
20+
# GOARCH to build in.
21+
# For more info refer to https://golang.org/doc/install/source#environment
22+
# Defaults are 386 and amd64
23+
goarch:
24+
- amd64
25+
- arm
26+
- arm64
27+
28+
goarm:
29+
- "6"
30+
- "7"
31+
32+
ldflags: "-s -w -X github.com/txn2/txeh/util/cmd.Version={{.Version}}"
33+
34+
checksum:
35+
name_template: '{{ .ProjectName }}_checksums.txt'
36+
37+
release:
38+
github:
39+
owner: txn2
40+
name: txeh
41+
name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
42+
43+
# You can disable this pipe in order to not upload any artifacts to
44+
# GitHub.
45+
# Defaults to false.
46+
disable: false
47+
48+
nfpms:
49+
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
50+
homepage: https://github.com/txn2/txeh
51+
description: Etc Hosts Management Utility.
52+
maintainer: Craig Johnston <cjimti@gmail.com>
53+
license: Apache 2.0
54+
vendor: https://github.com/txn2
55+
formats:
56+
- apk
57+
- deb
58+
- rpm
59+
60+
61+
archives:
62+
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
63+
replacements:
64+
darwin: Darwin
65+
linux: Linux
66+
windows: Windows
67+
386: i386
68+
amd64: x86_64
69+
format_overrides:
70+
- goos: windows
71+
format: zip
72+
73+
brews:
74+
- name: txeh
75+
tap:
76+
owner: txn2
77+
name: homebrew-tap
78+
commit_author:
79+
name: Craig Johnston
80+
email: cjimti@gmail.com
81+
folder: Formula
82+
homepage: https://github.com/txn2/txeh
83+
description: "Etc Hosts Management Utility."
84+
skip_upload: false
85+
test: |-
86+
txeh version
87+
88+
snapcrafts:
89+
- name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
90+
summary: Etc Hosts Management Utility.
91+
description: |
92+
Kubernetes bulk port forwarding utility.
93+
grade: stable
94+
confinement: classic

0 commit comments

Comments
 (0)