summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-08-28 23:31:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-08-28 23:31:10 +0800
commitb55a6b05c01238de4555e0cd92ef8305254394be (patch)
tree823e13bc1175da4117a5363cde1d567d10504d9f /make
parent139eb14a3a85ec6d6177904c1f98bbc2ba804ac8 (diff)
downloadlua-language-server-b55a6b05c01238de4555e0cd92ef8305254394be.zip
发布到对应专区
Diffstat (limited to 'make')
-rw-r--r--make/copy.lua5
-rw-r--r--make/install.lua3
-rw-r--r--make/unittest.lua3
3 files changed, 7 insertions, 4 deletions
diff --git a/make/copy.lua b/make/copy.lua
index 4c718117..df7c2de4 100644
--- a/make/copy.lua
+++ b/make/copy.lua
@@ -1,4 +1,5 @@
local fs = require 'bee.filesystem'
+local pf = require 'bee.platform'
local function getExtensionDirName(packageDir)
local publisher,name,version
@@ -49,7 +50,7 @@ if not fs.exists(extensionDir) then
return
end
-local binDir = extensionDir / "server" / "bin"
+local binDir = extensionDir / "server" / pf.OS / "bin"
local bakDir = extensionDir / "server" / "bak"
if fs.exists(binDir) then
@@ -60,6 +61,6 @@ if fs.exists(binDir) then
end
end
-copy_directory(sourceDir / "server" / "bin", binDir)
+copy_directory(sourceDir / "server" / pf.OS / "bin", binDir)
print 'ok'
diff --git a/make/install.lua b/make/install.lua
index 4df556e3..8d6e6764 100644
--- a/make/install.lua
+++ b/make/install.lua
@@ -1,9 +1,10 @@
local platform = ...
local fs = require 'bee.filesystem'
local sp = require 'bee.subprocess'
+local pf = require 'bee.platform'
local CWD = fs.current_path()
-local output = CWD / 'server' / 'bin'
+local output = CWD / 'server' / pf.OS / 'bin'
local bindir = CWD / 'build' / platform / 'bin'
local exe = platform == 'msvc' and ".exe" or ""
local dll = platform == 'msvc' and ".dll" or ".so"
diff --git a/make/unittest.lua b/make/unittest.lua
index a501d2aa..e8ae190b 100644
--- a/make/unittest.lua
+++ b/make/unittest.lua
@@ -1,11 +1,12 @@
local platform = ...
local fs = require 'bee.filesystem'
local sp = require 'bee.subprocess'
+local pf = require 'bee.platform'
local exe = platform == 'msvc' and ".exe" or ""
local CWD = fs.current_path()
local process = assert(sp.spawn {
- CWD / 'server' / 'bin' / ('lua-language-server' .. exe),
+ CWD / 'server' / pf.OS / 'bin' / ('lua-language-server' .. exe),
CWD / 'server' / 'test.lua',
'-E',
stdout = true,