Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit b06b5fa

Browse files
committed
GoReleaser
1 parent d1268f4 commit b06b5fa

File tree

3 files changed

+58
-3
lines changed

3 files changed

+58
-3
lines changed

.gon.hcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
source = ["./dist/gon"]
1+
source = ["./dist/macos_darwin_amd64/gon"]
22
bundle_id = "com.mitchellh.gon"
33

44
apple_id {
@@ -11,10 +11,10 @@ sign {
1111
}
1212

1313
zip {
14-
output_path = "./dist/gon.zip"
14+
output_path = "./dist/gon_macos.zip"
1515
}
1616

1717
dmg {
18-
output_path = "./dist/gon.dmg"
18+
output_path = "./dist/gon_macos.dmg"
1919
volume_name = "gon"
2020
}

.goreleaser.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
env:
2+
- GO111MODULE=on
3+
4+
before:
5+
hooks:
6+
- go mod download
7+
8+
builds:
9+
- id: macos
10+
env:
11+
- CGO_ENABLED=0
12+
goos:
13+
- darwin
14+
goarch:
15+
- amd64
16+
dir: ./cmd/gon/
17+
18+
archives:
19+
- id: macos-zip
20+
format: zip
21+
name_template: "{{ .ProjectName }}_{{ .Os }}"
22+
replacements:
23+
darwin: macos
24+
amd64: x86_64
25+
26+
signs:
27+
- signature: "${artifact}_macos.dmg"
28+
ids:
29+
- macos
30+
cmd: gon
31+
args:
32+
- .gon.hcl
33+
artifacts: all
34+
35+
snapshot:
36+
name_template: "{{ .Tag }}-next"
37+
38+
changelog:
39+
sort: asc
40+
filters:
41+
exclude:
42+
- 'README'
43+
44+
release:
45+
ids:
46+
- none
47+
extra_files:
48+
- glob: ./dist/gon_macos.dmg
49+
- glob: ./dist/gon_macos.zip
50+
51+
brews:
52+
- github:
53+
owner: mitchellh
54+
name: homebrew-gon
55+
description: "Sign, notarize, and package macOS CLI tools and applications written in any language."

cmd/gon/gon

10.7 MB
Binary file not shown.

0 commit comments

Comments
 (0)