Skip to content

Commit 62bc297

Browse files
committed
fix: fix xmake.lua
1 parent e032eda commit 62bc297

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

xmake.lua

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,11 @@ target("legacy-script-engine")
136136
"LEGACY_SCRIPT_ENGINE_BACKEND_NODEJS"
137137
)
138138
set_basename("legacy-script-engine-nodejs")
139-
local langPath = path.join(os.projectdir(), "src/lang")
140-
local outputPath = path.join(os.projectdir(), "bin/" .. target:name())
141-
os.cp(langPath, outputPath)
139+
after_build(function(target)
140+
local langPath = path.join(os.projectdir(), "src/lang")
141+
local outputPath = path.join(os.projectdir(), "bin/" .. target:name())
142+
os.cp(langPath, outputPath)
143+
end)
142144
end
143145

144146
add_files(

0 commit comments

Comments
 (0)