Skip to content

Commit 541ca8c

Browse files
PatriceJiangminggo
authored andcommitted
run on linux (#458)
1 parent 1e69fbb commit 541ca8c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

plugins/plugin_compile/project_compile.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,11 +904,17 @@ def build(self, platform):
904904
os.makedirs(output_dir)
905905

906906
if cfg_obj.build_result_dir is not None:
907-
result_dir = os.path.join(build_dir, 'bin', cfg_obj.build_result_dir, self.project_name, build_mode)
907+
result_dir = os.path.join(build_dir, 'bin', cfg_obj.build_result_dir, self.project_name)
908908
else:
909-
result_dir = os.path.join(build_dir, 'bin', self.project_name, build_mode)
909+
result_dir = os.path.join(build_dir, 'bin', self.project_name)
910+
911+
if os.path.exists(os.path.join(result_dir, build_mode)):
912+
result_dir = os.path.join(result_dir, build_mode)
913+
910914
cocos.copy_files_in_dir(result_dir, output_dir)
911915

916+
self.run_root = output_dir
917+
912918
# set application path and application name
913919
if platform == 'mac' or platform == 'ios':
914920
self.app_path = os.path.join(output_dir, self.project_name + '.app')

0 commit comments

Comments
 (0)