diff options
author | dev2 <dev2@dev2> | 2019-05-16 17:39:07 -0700 |
---|---|---|
committer | dev2 <dev2@dev2> | 2019-05-16 17:39:07 -0700 |
commit | 812aba7246f74d62b04bb9b24e3c70bd6d33d523 (patch) | |
tree | 10203d13bed4fab64641085735619cc6623235a9 /make | |
parent | c24eec132c08d51a75b77c57cf4a3ae2bff13402 (diff) | |
download | lua-language-server-812aba7246f74d62b04bb9b24e3c70bd6d33d523.zip |
support linux build
Diffstat (limited to 'make')
-rw-r--r-- | make/install.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/make/install.lua b/make/install.lua index 4aa544de..3da8983d 100644 --- a/make/install.lua +++ b/make/install.lua @@ -3,6 +3,8 @@ local sp = require 'bee.subprocess' local is_macos = package.cpath:sub(-3) == '.so' +local platform = require "bee.platform" + local CWD = fs.current_path() local output = CWD / 'server' / 'bin' @@ -17,17 +19,23 @@ if is_macos then exc_ext = "" end +if platform.OS == "Linux" then + bindir = CWD / 'build' / 'linux' / 'bin' + lib_ext = ".so" + exc_ext = "" +end + fs.create_directories(output) fs.copy_file(bindir / 'lni'..lib_ext, output / 'lni'..lib_ext, true) fs.copy_file(bindir / 'lpeglabel'..lib_ext, output / 'lpeglabel'..lib_ext, true) fs.copy_file(bindir / 'bee'..lib_ext, output / 'bee'..lib_ext, true) fs.copy_file(bindir / 'lua'..exc_ext, output / 'lua-language-server'..exc_ext, true) -if not is_macos then +if not is_macos and platform.OS ~= "Linux" then fs.copy_file(bindir / 'lua54'..lib_ext, output / 'lua54'..lib_ext, true) end -if not is_macos then +if not is_macos and platform.OS ~= "Linux" then local process = assert(sp.spawn { bindir / 'rcedit.exe', output / 'lua-language-server.exe', |