增加脚本安装

This commit is contained in:
2022-10-21 21:15:47 +08:00
parent 93758759f9
commit a75f11da62
11 changed files with 23 additions and 0 deletions

BIN
bin/386 Normal file

Binary file not shown.

BIN
bin/amd64 Normal file

Binary file not shown.

BIN
bin/arm Normal file

Binary file not shown.

BIN
bin/arm64 Normal file

Binary file not shown.

BIN
bin/mips Normal file

Binary file not shown.

BIN
bin/mips64 Normal file

Binary file not shown.

BIN
bin/mips64le Normal file

Binary file not shown.

BIN
bin/mipsle Normal file

Binary file not shown.

BIN
bin/ppc64 Normal file

Binary file not shown.

BIN
bin/ppc64le Normal file

Binary file not shown.

23
build.sh Normal file
View File

@@ -0,0 +1,23 @@
:
_build()
{
ARCH="386 amd64 arm arm64 mips mips64 mips64le mipsle ppc64 ppc64le"
for a in $ARCH
do
CGO_ENABLED=0 GOOS=linux GOARCH=$a go build -ldflags '-w -s' -o bin/$a && upx -9 bin/$a
done
}
_install()
{
cp bin/amd64 /bin/gomail
cp gomail.ini /etc/
}
test "$1" = "install" && _install && exit 0
_build