Skip to content

Commit

Permalink
Change installdir name from release/debug to Release/Debug for bindings
Browse files Browse the repository at this point in the history
https://www.npmjs.com/package/bindings only search build/Release, build/Debug
  • Loading branch information
Freed-Wu committed Jan 13, 2025
1 parent 876fc4c commit 49bde00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xmake/rules/nodejs/module/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 49bde00

Please sign in to comment.