5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-25 21:15:43 +00:00

Mismatching GOARCH and debian arch

This commit is contained in:
Neil Alexander 2018-03-01 18:06:53 +00:00
parent 3089f2326e
commit 9285e0fe25

View File

@ -57,7 +57,8 @@ systemctl disable yggdrasil
systemctl stop yggdrasil
EOF
GOOS=linux GOARCH=$PKGARCH ./build
if [ $PKGARCH = "amd64" ]; then GOARCH=amd64 GOOS=linux ./build; fi
if [ $PKGARCH = "i386" ]; then GOARCH=386 GOOS=linux ./build; fi
cp yggdrasil /tmp/$PKGNAME/usr/bin/
cp contrib/systemd/yggdrasil.service /tmp/$PKGNAME/etc/systemd/system/
@ -76,4 +77,3 @@ ar -r $PKGFILE \
/tmp/$PKGNAME/data.tar.gz
rm -rf /tmp/$PKGNAME