diff --git a/bin/leanote-mac b/bin/leanote-mac new file mode 100755 index 0000000..2d0bb9d Binary files /dev/null and b/bin/leanote-mac differ diff --git a/bin/run.sh b/bin/run.sh new file mode 100644 index 0000000..f1eb4dc --- /dev/null +++ b/bin/run.sh @@ -0,0 +1,20 @@ +#!/bin/sh +SCRIPTPATH=$(cd "$(dirname "$0")"; pwd) + +# set link +path="$SCRIPTPATH/src/github.com/leanote" +if [ ! -d "$path" ]; then + mkdir -p "$path" +fi +ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote + +# set GOPATH +export GOPATH=$GOPATH:$SCRIPTPATH + +# run +osName=`uname` +if [ $osName == "Darwin" ]; then + "$SCRIPTPATH/leanote-mac" -importPath github.com/leanote/leanote +else + "$SCRIPTPATH/leanote-linux" -importPath github.com/leanote/leanote +fi