Skip to content

Commit 045ef4a

Browse files
committed
#2 设置一下cpath试试
1 parent 66711c0 commit 045ef4a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.vscode/tasks.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@
4343
"label": "Install",
4444
"command": "${workspaceFolder}/server/build/lua",
4545
"args": [
46+
"-e",
47+
"package.cpath = './server/build/?.so;' .. package.cpath",
4648
"make/copy.lua",
47-
"${command:extensionPath}"
49+
"${command:extensionPath}",
4850
],
4951
}
5052
]

make/copy.lua

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
local fs = require 'bee.filesystem'
22
local pf = require 'bee.platform'
33

4+
print(package.cpath)
5+
46
local function getExtensionDirName(packageDir)
57
local publisher,name,version
68
for line in io.lines(packageDir .. '/package.json') do

0 commit comments

Comments
 (0)