2017-01-10 11:23:34 +01:00
|
|
|
#!/usr/bin/env bash
|
2016-10-16 13:14:05 +02:00
|
|
|
# release build script
|
|
|
|
# to be run inside the Oragono dir
|
|
|
|
|
|
|
|
## windows ##
|
|
|
|
rm -rf ./build/win/
|
|
|
|
mkdir -p ./build/win/docs/
|
|
|
|
|
2017-01-10 12:39:23 +01:00
|
|
|
GOOS=windows GOARCH=amd64 go build oragono.go
|
2016-10-16 13:19:29 +02:00
|
|
|
mv oragono.exe ./build/win/
|
2016-10-16 13:14:05 +02:00
|
|
|
|
|
|
|
cp LICENSE ./build/win/
|
2016-10-16 13:19:29 +02:00
|
|
|
cp oragono.yaml oragono.motd ./build/win
|
2016-10-16 13:14:05 +02:00
|
|
|
cp ./docs/README ./build/win/
|
2016-10-16 13:30:52 +02:00
|
|
|
cp ./CHANGELOG.md ./build/win/docs
|
2016-10-16 13:14:05 +02:00
|
|
|
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/
|
|
|
|
|
2017-01-10 12:39:23 +01:00
|
|
|
GOOS=darwin GOARCH=amd64 go build oragono.go
|
2016-10-16 13:14:05 +02:00
|
|
|
mv oragono ./build/osx/
|
|
|
|
|
|
|
|
cp LICENSE ./build/osx/
|
2016-10-16 13:19:29 +02:00
|
|
|
cp oragono.yaml oragono.motd ./build/osx
|
2016-10-16 13:14:05 +02:00
|
|
|
cp ./docs/README ./build/osx/
|
2016-10-16 13:30:52 +02:00
|
|
|
cp ./CHANGELOG.md ./build/osx/docs
|
2016-10-16 13:14:05 +02:00
|
|
|
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/
|
|
|
|
|
2017-01-10 12:39:23 +01:00
|
|
|
GOOS=linux GOARCH=amd64 go build oragono.go
|
2016-10-16 13:14:05 +02:00
|
|
|
mv oragono ./build/linux/
|
|
|
|
|
|
|
|
cp LICENSE ./build/linux/
|
2016-10-16 13:19:29 +02:00
|
|
|
cp oragono.yaml oragono.motd ./build/linux
|
2016-10-16 13:14:05 +02:00
|
|
|
cp ./docs/README ./build/linux/
|
2016-10-16 13:30:52 +02:00
|
|
|
cp ./CHANGELOG.md ./build/linux/docs
|
2016-10-16 13:14:05 +02:00
|
|
|
cp ./docs/logo* ./build/linux/docs
|
|
|
|
|
|
|
|
pushd ./build/linux
|
|
|
|
tar -czvf ../oragono-XXX-linux.tgz *
|
|
|
|
popd
|
2017-01-10 12:39:23 +01:00
|
|
|
|
|
|
|
## 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
|