-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yml
102 lines (98 loc) · 2.26 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
before:
hooks:
- go generate .
builds:
- binary: webexec
id: non-darwin
goos:
- linux
- freebsd
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
- binary: webexec
id: darwin
goos:
- darwin
goarch:
- amd64
- arm64
hooks:
post:
- |
sh -c '
fn=dist/darwin_{{.Target}}/gon.hcl
cat >"$fn" <<EOF
bundle_id = "{{.Env.BUNDLE_ID}}"
apple_id {
username = "{{.Env.APPLE_ID_USERNAME}}"
password = "{{.Env.APPLE_ID_PASSWORD}}"
provider = "{{.Env.APPLE_ID_TEAM}}"
}
source = ["dist/darwin_{{.Target}}/{{.Name}}"]
sign {
application_identity = "{{.Env.APPLE_APPLICATION_IDENTITY}}"
}
EOF
'
- "gon -log-level=debug 'dist/darwin_{{.Target}}/gon.hcl'"
archives:
- id: non-darwin
builds: [non-darwin]
# name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: true
files:
- README.md
- LICENSE
- CHANGELOG.md
- replace_n_launch.sh
- id: darwin
builds: [darwin]
format: zip
# name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- README.md
- LICENSE
- CHANGELOG.md
- replace_n_launch.sh
wrap_in_directory: true
signs:
- id: darwin-notarized
ids: [darwin]
signature: "${artifact}"
# output: true
cmd: sh
args:
- "-c"
- |-
cat >"dist/gon.notarize.hcl" <<EOF
apple_id {
username = "{{.Env.APPLE_ID_USERNAME}}"
password = "{{.Env.APPLE_ID_PASSWORD}}"
provider = "{{.Env.APPLE_ID_TEAM}}"
}
notarize {
path = "${artifact}"
bundle_id = "{{.Env.BUNDLE_ID}}"
}
EOF
gon "dist/gon.notarize.hcl"
artifacts: archive
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
skip: true
release:
ids: [non-darwin, darwin-notarized]
github:
owner: tuzig
name: webexec
draft: true
prerelease: auto
footer: ...[Here](https://github.com/tuzig/webexec/blob/master/CHANGELOG.md) for the complete change log