From 8c384a24650f6fc112c1ff6791b985cc6b29a403 Mon Sep 17 00:00:00 2001 From: Matthew Bloch Date: Mon, 4 Jan 2016 02:41:36 +0000 Subject: [PATCH] Added building of release.zip to build script. --- build-and-copy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build-and-copy b/build-and-copy index 464962f..9f9507e 100755 --- a/build-and-copy +++ b/build-and-copy @@ -6,11 +6,14 @@ # Works for me on an Ubuntu system where a Raspberry Pi appears under # /media/mattbee/boot but you may need to adjust. -export GOPATH=`pwd` +export GOPATH=`pwd` export GOOS=linux export GOARCH=arm +FILES="cmdline.txt pi-init2 appliance" + go build -o pi-init2 projects.bytemark.co.uk/pi-init2 && \ - cp -a cmdline.txt pi-init2 appliance /media/$USER/boot && \ + zip -r release.zip $FILES && \ + cp -a $FILES /media/$USER/boot && \ umount /media/$USER/boot