From 7bce531914a7a28ccaa2d276435ae1493a9b4405 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Tue, 10 Jan 2017 21:39:23 +1000 Subject: [PATCH] build: Add Linux ARM (raspi) and fix ARCH --- build.sh | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 79f51e5f..7c36a881 100755 --- a/build.sh +++ b/build.sh @@ -6,7 +6,7 @@ rm -rf ./build/win/ mkdir -p ./build/win/docs/ -GOOS=windows GOATCH=amd64 go build oragono.go +GOOS=windows GOARCH=amd64 go build oragono.go mv oragono.exe ./build/win/ cp LICENSE ./build/win/ @@ -23,7 +23,7 @@ popd rm -rf ./build/osx/ mkdir -p ./build/osx/docs/ -GOOS=darwin GOATCH=amd64 go build oragono.go +GOOS=darwin GOARCH=amd64 go build oragono.go mv oragono ./build/osx/ cp LICENSE ./build/osx/ @@ -40,7 +40,7 @@ popd rm -rf ./build/linux mkdir -p ./build/linux/docs/ -GOOS=linux GOATCH=amd64 go build oragono.go +GOOS=linux GOARCH=amd64 go build oragono.go mv oragono ./build/linux/ cp LICENSE ./build/linux/ @@ -52,3 +52,20 @@ cp ./docs/logo* ./build/linux/docs pushd ./build/linux tar -czvf ../oragono-XXX-linux.tgz * popd + +## arm ## +rm -rf ./build/arm +mkdir -p ./build/arm/docs/ + +GOARM=6 GOARCH=arm go build oragono.go +mv oragono ./build/arm/ + +cp LICENSE ./build/arm/ +cp oragono.yaml oragono.motd ./build/arm +cp ./docs/README ./build/arm/ +cp ./CHANGELOG.md ./build/arm/docs +cp ./docs/logo* ./build/arm/docs + +pushd ./build/arm +tar -czvf ../oragono-XXX-arm.tgz * +popd