summaryrefslogtreecommitdiff
path: root/make/install.lua
diff options
context:
space:
mode:
authoractboy168 <actboy168@gmail.com>2021-09-14 22:01:07 +0800
committeractboy168 <actboy168@gmail.com>2021-09-14 22:01:07 +0800
commit0c8c6bbf23082d0b858646846a47a3001f718ae2 (patch)
tree8b66068871b17cb6bd3367dcec7eb6911c2b6a4e /make/install.lua
parent321fc84cabff0252f25e94df14746b8e9cb3d190 (diff)
downloadlua-language-server-0c8c6bbf23082d0b858646846a47a3001f718ae2.zip
update bee
Diffstat (limited to 'make/install.lua')
-rw-r--r--make/install.lua9
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