3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00
ergo/build.sh

55 lines
1.1 KiB
Bash
Raw Normal View History

#!/usr/bin/env sh
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/
GOOS=windows GOATCH=amd64 go build oragono.go
mv oragono.exe ./build/win/
2016-10-16 13:14:05 +02:00
cp LICENSE ./build/win/
cp oragono.yaml oragono.motd ./build/win
2016-10-16 13:14:05 +02:00
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=darwin GOATCH=amd64 go build oragono.go
2016-10-16 13:14:05 +02:00
mv oragono ./build/osx/
cp LICENSE ./build/osx/
cp oragono.yaml oragono.motd ./build/osx
2016-10-16 13:14:05 +02:00
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 oragono.yaml oragono.motd ./build/linux
2016-10-16 13:14:05 +02:00
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