From 49bde005a0d99007fe4e68672ef63a482d3b24ee Mon Sep 17 00:00:00 2001 From: "Wu, Zhenyu" Date: Mon, 13 Jan 2025 23:57:54 +0800 Subject: [PATCH] Change installdir name from release/debug to Release/Debug for bindings https://www.npmjs.com/package/bindings only search build/Release, build/Debug --- xmake/rules/nodejs/module/xmake.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmake/rules/nodejs/module/xmake.lua b/xmake/rules/nodejs/module/xmake.lua index 878429483c..aaa27160ec 100644 --- a/xmake/rules/nodejs/module/xmake.lua +++ b/xmake/rules/nodejs/module/xmake.lua @@ -69,7 +69,8 @@ rule("nodejs.module") target:set("kind", "shared") end local moduledir = path.directory((target:name():gsub('%.', '/'))) - local installdir = path.join("build", get_config("mode")) + local mode = get_config("mode") + local installdir = path.join("build", mode:sub(1, 1):upper() .. mode:sub(2)) import("target.action.install")(target, { installdir = installdir, libdir = moduledir,