diff options
author | actboy168 <actboy168@gmail.com> | 2019-06-10 16:52:20 +0800 |
---|---|---|
committer | actboy168 <actboy168@gmail.com> | 2019-06-10 16:52:20 +0800 |
commit | 11dbf384b2042e9d2749e95d64e1efbeaeaf0b35 (patch) | |
tree | ea840be852b1af89104d2066b51cc8d0d7adc584 /osx.sh | |
parent | aa77a6514802a40bde972647b84adf95e375d4ae (diff) | |
download | lua-language-server-11dbf384b2042e9d2749e95d64e1efbeaeaf0b35.zip |
新的安装脚本
Diffstat (limited to 'osx.sh')
-rwxr-xr-x | osx.sh | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/osx.sh b/osx.sh deleted file mode 100755 index 1a1e21e6..00000000 --- a/osx.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -set -e - -MY_DIR=$(cd "$(dirname $0)";pwd) -INSTALL_PATH=`find ~/.vscode/extensions -name "sumneko.lua-*" | sort -r | head -1` - -cd $MY_DIR - -echo "updating submodule ..." -git submodule -q update --recursive --init - -echo "build luamake ..." -cd 3rd/luamake -ninja -f ninja/macos.ninja -cd - - -echo "build binary ..." -./3rd/luamake/luamake - -if [ -d "$INSTALL_PATH" ]; then - echo "Try to install lua-language-server for you:" - cp -R server/bin "${INSTALL_PATH}/server" - - echo "Test ..." - cp server/test.lua "${INSTALL_PATH}/server" - ${INSTALL_PATH}/server/bin/lua-language-server ${INSTALL_PATH}/server/test.lua - rm ${INSTALL_PATH}/server/test.lua - - echo "installed." - echo "please restart VScode and enjoy." -else - echo "Test ..." - ./server/bin/lua-language-server ./server/publish.lua - - echo "please install sumneko Lua in VScode Marketplace first." -fi -echo "Done." |