Skip to content

Commit 6ffa2bd

Browse files
committed
support arm64
1 parent de3990c commit 6ffa2bd

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.goreleaser.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ archives:
88
format: tar.gz
99
name_template: "{{.Binary}}_{{.Version}}_{{.Os}}-{{.Arch}}"
1010
replacements:
11-
386: 32bit
12-
amd64: 64bit
11+
amd64: 64bit_x86
12+
arm64: 64bit_arm
1313
darwin: macOS
1414
linux: Linux
1515

1616
brews:
1717
- name: maintainer
18-
caveats:
18+
caveats: ''
1919
commit_author:
2020
name: Kamil Samigullin
2121
@@ -49,8 +49,8 @@ builds:
4949
flags:
5050
- -trimpath
5151
goarch:
52-
- 386
5352
- amd64
53+
- arm64
5454
goos:
5555
- darwin
5656
- linux

bin/install

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
set -e
3-
# Code generated by godownloader on 2021-01-01T15:40:52Z. DO NOT EDIT.
3+
# Code generated by godownloader on 2021-12-11T21:50:23Z. DO NOT EDIT.
44
#
55

66
usage() {
@@ -62,10 +62,10 @@ execute() {
6262
}
6363
get_binaries() {
6464
case "$PLATFORM" in
65-
darwin/386) BINARIES="maintainer" ;;
6665
darwin/amd64) BINARIES="maintainer" ;;
67-
linux/386) BINARIES="maintainer" ;;
66+
darwin/arm64) BINARIES="maintainer" ;;
6867
linux/amd64) BINARIES="maintainer" ;;
68+
linux/arm64) BINARIES="maintainer" ;;
6969
*)
7070
log_crit "platform $PLATFORM is not supported. Make sure this script is up-to-date and file request at https://github.com/${PREFIX}/issues/new"
7171
exit 1
@@ -94,8 +94,8 @@ adjust_format() {
9494
adjust_os() {
9595
# adjust archive name based on OS
9696
case ${OS} in
97-
386) OS=32bit ;;
98-
amd64) OS=64bit ;;
97+
amd64) OS=64bit_x86 ;;
98+
arm64) OS=64bit_arm ;;
9999
darwin) OS=macOS ;;
100100
linux) OS=Linux ;;
101101
esac
@@ -104,8 +104,8 @@ adjust_os() {
104104
adjust_arch() {
105105
# adjust archive name based on ARCH
106106
case ${ARCH} in
107-
386) ARCH=32bit ;;
108-
amd64) ARCH=64bit ;;
107+
amd64) ARCH=64bit_x86 ;;
108+
arm64) ARCH=64bit_arm ;;
109109
darwin) ARCH=macOS ;;
110110
linux) ARCH=Linux ;;
111111
esac

0 commit comments

Comments
 (0)