diff options
author | actboy168 <actboy168@gmail.com> | 2021-09-14 22:01:07 +0800 |
---|---|---|
committer | actboy168 <actboy168@gmail.com> | 2021-09-14 22:01:07 +0800 |
commit | 0c8c6bbf23082d0b858646846a47a3001f718ae2 (patch) | |
tree | 8b66068871b17cb6bd3367dcec7eb6911c2b6a4e /make/install.lua | |
parent | 321fc84cabff0252f25e94df14746b8e9cb3d190 (diff) | |
download | lua-language-server-0c8c6bbf23082d0b858646846a47a3001f718ae2.zip |
update bee
Diffstat (limited to 'make/install.lua')
-rw-r--r-- | make/install.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/make/install.lua b/make/install.lua index 036f0f4b..e8078770 100644 --- a/make/install.lua +++ b/make/install.lua @@ -7,13 +7,14 @@ local output = CWD / 'bin' / pf.OS local bindir = CWD / builddir / 'bin' local exe = pf.OS == 'Windows' and ".exe" or "" local dll = pf.OS == 'Windows' and ".dll" or ".so" +local OVERWRITE = fs.copy_options.overwrite_existing 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) +fs.copy_file(bindir / 'lpeglabel'..dll, output / 'lpeglabel'..dll, OVERWRITE) +fs.copy_file(bindir / 'bee'..dll, output / 'bee'..dll, OVERWRITE) +fs.copy_file(bindir / 'lua'..exe, output / 'lua-language-server'..exe, OVERWRITE) if pf.OS == 'Windows' then - fs.copy_file(bindir / 'lua54'..dll, output / 'lua54'..dll, true) + fs.copy_file(bindir / 'lua54'..dll, output / 'lua54'..dll, OVERWRITE) require 'msvc'.copy_vcrt('x64', output) end |