From 0fba9464f909ffbf72d8897377ec47ccde9ae5ef Mon Sep 17 00:00:00 2001 From: aixiao Date: Sat, 22 Oct 2022 17:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AE=89=E8=A3=85=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 7d3aae7..706667d 100644 --- a/build.sh +++ b/build.sh @@ -14,7 +14,8 @@ _build() _install() { - cp bin/amd64 /bin/gomail + ARCH=`go env | grep GOARCH | cut -d \" -f 2` + cp bin/${ARCH} /bin/gomail cp gomail.ini /etc/ }