blob: 9603b3764a6962a47cb4c22256cb2d9afafb223a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/bin/bash
set -e
MY_DIR=$(cd "$(dirname $0)";pwd)
cd $MY_DIR
git submodule -q update --recursive --init
## apt install ninja-build
## apt install clang
echo "build luamake ..."
cd 3rd/luamake
ninja -f ninja/linux.ninja
cd $MY_DIR
./3rd/luamake/luamake
cd server
mv bin/*.so .
# avoid too many file opened error
ulimit -n 4000
./bin/lua-language-server publish.lua
cd $MY_DIR
# cp server/*.so publish/lua-language-server/server/
## nvm install stable
## nvm use stable
## npm install -g vsce
# cd publish/lua-language-server
# vsce package
## example of development environment
## cp ~/lua-language-server/server/*.so ~/.vscode/extensions/sumneko.lua-0.9.4/server/
## killall -9 lua-language-server; cp ~/lua-language-server/server/bin/lua-language-server ~/.vscode/extensions/sumneko.lua-0.9.4/server/bin/
|