Arremi/build.sh

36 lines
556 B
Bash
Raw Normal View History

2018-03-20 01:51:10 +00:00
#!/bin/sh
export BUILD_BASE=build
function get_os() {
OS=`uname|tr '[:upper:]' '[:lower:]'`
if [ "${GOOS}x" != "x" ]; then
OS=$GOOS
fi
export OS
}
function build_darwin() {
export INSTALL_TARGET=$BUILD_BASE/Arremi.app/Contents/
mkdir -p $INSTALL_TARGET/MacOS
go build -o $INSTALL_TARGET/MacOS/Arremi main.go
}
function build_linux() {
}
function main() {
mkdir -p $BUILD_BASE
get_os
case OS
darwin)
;;
linux)
;;
*)
echo "No target"
;;
esac
}