Linux still to be tested

This commit is contained in:
TonyChyi 2018-03-20 09:51:10 +08:00
parent 7c30d38607
commit 3f1848f5b7
5 changed files with 42 additions and 2 deletions

0
Makefile Normal file
View File

View File

@ -5,7 +5,11 @@ Arremi
Arremi is a simple driver/router from Arduino USB serial to MIDI
Now only for OSX
**Linux support not completed yet!**
Linux would be later.
## Build
```
go get -v github.com/tonychee7000/Arremi
```

36
build.sh Executable file
View File

@ -0,0 +1,36 @@
#!/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
}