From 0fe1e6bc8a1146a5245cf0e9843b8c4d02dfccc0 Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sun, 16 Oct 2016 21:14:05 +1000 Subject: [PATCH] Add example build script --- build.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 00000000..50a640bf --- /dev/null +++ b/build.sh @@ -0,0 +1,51 @@ +!#/usr/bin/env sh +# release build script +# to be run inside the Oragono dir + +## windows ## +rm -rf ./build/win/ +mkdir -p ./build/win/docs/ + +GOOS=windows GOATCH=amd64 go build oragono.go +mv oragono ./build/win/ + +cp LICENSE ./build/win/ +cp ./docs/README ./build/win/ +cp ./docs/CHANGELOG.md ./build/win/ +cp ./docs/logo* ./build/win/docs + +pushd ./build/win +zip -r ../oragono-XXX-windows.zip * +popd + +## osx ## +rm -rf ./build/osx/ +mkdir -p ./build/osx/docs/ + +GOOS=osx GOATCH=amd64 go build oragono.go +mv oragono ./build/osx/ + +cp LICENSE ./build/osx/ +cp ./docs/README ./build/osx/ +cp ./docs/CHANGELOG.md ./build/osx/ +cp ./docs/logo* ./build/osx/docs + +pushd ./build/osx +tar -czvf ../oragono-XXX-osx.tgz * +popd + +## linux ## +rm -rf ./build/linux +mkdir -p ./build/linux/docs/ + +GOOS=linux GOATCH=amd64 go build oragono.go +mv oragono ./build/linux/ + +cp LICENSE ./build/linux/ +cp ./docs/README ./build/linux/ +cp ./docs/CHANGELOG.md ./build/linux/ +cp ./docs/logo* ./build/linux/docs + +pushd ./build/linux +tar -czvf ../oragono-XXX-linux.tgz * +popd