Linux still to be tested
This commit is contained in:
parent
7c30d38607
commit
3f1848f5b7
@ -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
36
build.sh
Executable 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user