diff options
| author | Wu, Zhenyu <[email protected]> | 2025-01-13 23:57:54 +0800 |
|---|---|---|
| committer | Wu, Zhenyu <[email protected]> | 2025-01-13 23:57:54 +0800 |
| commit | 49bde005a0d99007fe4e68672ef63a482d3b24ee (patch) | |
| tree | e47429070aa669508ef3da59f0bcc1c31fd7cdc4 /xmake/rules/nodejs/module/xmake.lua | |
| parent | 876fc4cf4ea813f4a24c83e2aebb504fe9c22c29 (diff) | |
Change installdir name from release/debug to Release/Debug for bindings
https://www.npmjs.com/package/bindings only search build/Release, build/Debug
Diffstat (limited to 'xmake/rules/nodejs/module/xmake.lua')
| -rw-r--r-- | xmake/rules/nodejs/module/xmake.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/nodejs/module/xmake.lua b/xmake/rules/nodejs/module/xmake.lua index 878429483..aaa27160e 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, |
