File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,23 @@ builds:
37
37
- ppc64le
38
38
- s390x
39
39
archives :
40
- - name_template : " {{.Binary}}_{{.Version}}_{{.Os}}_{{.Arch}}"
41
- replacements :
42
- darwin : Darwin
43
- linux : Linux
44
- 386 : i386
45
- amd64 : x86_64
46
- freebsd : FreeBSD
40
+ - name_template : |-
41
+ {{- $prettyOS := .Os -}}
42
+ {{- if eq $prettyOS "darwin" -}}
43
+ {{- $prettyOS = "Darwin" -}}
44
+ {{- else if eq $prettyOS "linux" -}}
45
+ {{- $prettyOS = "Linux" -}}
46
+ {{- else if eq $prettyOS "freebsd" -}}
47
+ {{- $prettyOS = "FreeBSD" -}}
48
+ {{- end -}}
49
+
50
+ {{- $prettyArch := .Arch -}}
51
+ {{- if eq $prettyArch "386" -}}
52
+ {{- $prettyArch = "i386" -}}
53
+ {{- else if eq $prettyArch "amd64" -}}
54
+ {{- $prettyArch = "x86_64" -}}
55
+ {{- end -}}
56
+ {{.Binary}}_{{.Version}}_{{$prettyOS}}_{{$prettyArch}}
47
57
checksum :
48
58
name_template : ' checksums.txt'
49
59
snapshot :
You can’t perform that action at this time.
0 commit comments