Compare commits
No commits in common. "master" and "0.0.1" have entirely different histories.
@ -8,10 +8,4 @@ Arremi is a simple driver/router from Arduino USB serial to MIDI
|
|||||||
**Linux support not completed yet! debug needed.**
|
**Linux support not completed yet! debug needed.**
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
just run `build.sh` and find app(mac) or tgz(linux) in `build` folder.
|
just run `build.sh` and find app(mac) or tgz(linux) in `build` folder.
|
||||||
|
|
||||||
|
|
||||||
## Known Problems
|
|
||||||
|
|
||||||
* Linux build failed for `andlabs/ui` [bug](https://github.com/andlabs/ui/issues/272)
|
|
||||||
|
|
12
build.sh
12
build.sh
@ -2,11 +2,6 @@
|
|||||||
|
|
||||||
export BUILD_BASE=build
|
export BUILD_BASE=build
|
||||||
|
|
||||||
function get_go_ver(){
|
|
||||||
GOVER=`go version|awk '{print $3}'`
|
|
||||||
export GOVER
|
|
||||||
}
|
|
||||||
|
|
||||||
function get_os() {
|
function get_os() {
|
||||||
OS=`uname|tr '[:upper:]' '[:lower:]'`
|
OS=`uname|tr '[:upper:]' '[:lower:]'`
|
||||||
if [ "${GOOS}x" != "x" ]; then
|
if [ "${GOOS}x" != "x" ]; then
|
||||||
@ -29,14 +24,9 @@ function build_linux() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
rm -rf build
|
|
||||||
mkdir -p $BUILD_BASE
|
mkdir -p $BUILD_BASE
|
||||||
get_os
|
get_os
|
||||||
get_go_ver
|
case OS
|
||||||
if [ $GOVER == 'go1.10' ]; then
|
|
||||||
export CGO_LDFLAGS_ALLOW=".*"
|
|
||||||
fi
|
|
||||||
case $OS
|
|
||||||
darwin)
|
darwin)
|
||||||
build_darwin
|
build_darwin
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user