From 9285e0fe25335b1d317747acf966e3cfa5a87200 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 1 Mar 2018 18:06:53 +0000 Subject: [PATCH] Mismatching GOARCH and debian arch --- contrib/deb/generate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/deb/generate.sh b/contrib/deb/generate.sh index fed5c84..f3c64d8 100644 --- a/contrib/deb/generate.sh +++ b/contrib/deb/generate.sh @@ -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 -