Skip to content

Commit

Permalink
Added building of release.zip to build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Bloch committed Jan 4, 2016
1 parent b212456 commit 8c384a2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build-and-copy
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8c384a2

Please sign in to comment.