Skip to content

Commit dd99be5

Browse files
Ligo04MKXJun
authored andcommitted
修改hlsl,asset资产复制路径, 修改资产文件重复复制的问题
1 parent f9463ae commit dd99be5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ rule("hlsl_shader_copy")
3838
after_build(function (target)
3939
-- shader files
4040
if os.exists(path.join(target:scriptdir(),"/Shaders")) then
41-
os.cp(path.join(target:scriptdir(),"/Shaders"), path.join(target:targetdir(),"/Shaders"))
41+
os.cp(path.join(target:scriptdir(),"/Shaders"), target:targetdir())
4242
end
4343
end)
4444
rule_end()
@@ -55,10 +55,10 @@ rule_end()
5555
rule("asset_file")
5656
after_build(function (target)
5757
if os.exists(path.join(target:scriptdir(),"../Texture")) then
58-
os.cp(path.join(target:scriptdir(),"../Texture"), path.join(target:targetdir(),"../Texture"))
58+
os.cp(path.join(target:scriptdir(),"../Texture"), path.join(target:targetdir(),".."))
5959
end
6060
if os.exists(path.join(target:scriptdir(),"../Model")) then
61-
os.cp(path.join(target:scriptdir(),"../Model"), path.join(target:targetdir(),"../Model"))
61+
os.cp(path.join(target:scriptdir(),"../Model"), path.join(target:targetdir(),".."))
6262
end
6363
end)
6464
rule_end()

0 commit comments

Comments
 (0)