Skip to content

Commit 727d60e

Browse files
authored
change win32 res path to Resources (#450)
1 parent 47a8034 commit 727d60e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugins/plugin_compile/project_compile.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,15 +1238,16 @@ def build_win32(self):
12381238
shutil.copy(file_path, output_dir)
12391239

12401240
# copy lua files & res
1241-
self._copy_resources(output_dir)
1241+
res_path = os.path.join(output_dir, "Resources")
1242+
self._copy_resources(res_path)
12421243

12431244
# check the project config & compile the script files
12441245
if self._project._is_js_project():
1245-
self.compile_js_scripts(output_dir, output_dir)
1246+
self.compile_js_scripts(res_path, res_path)
12461247

12471248
if self._project._is_lua_project():
12481249
# windows only support 32-bit bytecode
1249-
self.compile_lua_scripts(output_dir, output_dir, False)
1250+
self.compile_lua_scripts(res_path, res_path, False)
12501251

12511252
self.run_root = output_dir
12521253

0 commit comments

Comments
 (0)