Skip to content

Commit 8a642c0

Browse files
committed
#173 修复 Windows 下的 Install 任务
1 parent 809c35b commit 8a642c0

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.vscode/tasks.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@
4141
},
4242
{
4343
"label": "Install",
44-
"command": "${workspaceFolder}/server/build/lua",
44+
"windows": {
45+
"command": "${workspaceFolder}/server/build/msvc/bin/lua.exe",
46+
"args": [
47+
"-e",
48+
"package.cpath = \"./server/build/msvc/bin/?.dll;\" .. package.cpath",
49+
"make/copy.lua",
50+
"${command:extensionPath}",
51+
],
52+
},
4553
"linux": {
4654
"command": "${workspaceFolder}/server/build/linux/bin/lua",
4755
"args": [
@@ -60,12 +68,6 @@
6068
"${command:extensionPath}",
6169
],
6270
},
63-
"args": [
64-
"-e",
65-
"package.cpath = \"./server/build/?.so;\" .. package.cpath",
66-
"make/copy.lua",
67-
"${command:extensionPath}",
68-
],
6971
}
7072
]
7173
}

0 commit comments

Comments
 (0)