增加脚本安装
This commit is contained in:
BIN
bin/mips64
Normal file
BIN
bin/mips64
Normal file
Binary file not shown.
BIN
bin/mips64le
Normal file
BIN
bin/mips64le
Normal file
Binary file not shown.
BIN
bin/mipsle
Normal file
BIN
bin/mipsle
Normal file
Binary file not shown.
BIN
bin/ppc64le
Normal file
BIN
bin/ppc64le
Normal file
Binary file not shown.
23
build.sh
Normal file
23
build.sh
Normal 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
|
||||
Reference in New Issue
Block a user