diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-12 15:05:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-12 15:05:48 +0800 |
commit | 5f074dc6a601edd730b457f6004cffacfdb6d66a (patch) | |
tree | 25bb2207bc7f1b21dadff2446aaf1cac82814431 /make/install.lua | |
parent | 690aadefc66e447b3f3205882c1fbcc8df987bda (diff) | |
parent | 8237a3cf5bb4005e1a9a0268c614abdd6a1f34d0 (diff) | |
download | lua-language-server-5f074dc6a601edd730b457f6004cffacfdb6d66a.zip |
Merge remote-tracking branch 'origin/master' into 2.0.0
Diffstat (limited to 'make/install.lua')
-rw-r--r-- | make/install.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/make/install.lua b/make/install.lua index 75556ac1..036f0f4b 100644 --- a/make/install.lua +++ b/make/install.lua @@ -1,20 +1,19 @@ -local platform = ... +local builddir = ... local fs = require 'bee.filesystem' -local sp = require 'bee.subprocess' local pf = require 'bee.platform' local CWD = fs.current_path() local output = CWD / 'bin' / pf.OS -local bindir = CWD / 'build' / platform / 'bin' -local exe = platform == 'msvc' and ".exe" or "" -local dll = platform == 'msvc' and ".dll" or ".so" +local bindir = CWD / builddir / 'bin' +local exe = pf.OS == 'Windows' and ".exe" or "" +local dll = pf.OS == 'Windows' and ".dll" or ".so" fs.create_directories(output) fs.copy_file(bindir / 'lpeglabel'..dll, output / 'lpeglabel'..dll, true) fs.copy_file(bindir / 'bee'..dll, output / 'bee'..dll, true) fs.copy_file(bindir / 'lua'..exe, output / 'lua-language-server'..exe, true) -if platform == 'msvc' then +if pf.OS == 'Windows' then fs.copy_file(bindir / 'lua54'..dll, output / 'lua54'..dll, true) require 'msvc'.copy_vcrt('x64', output) end |