From c9a7ccaef9d80d219ad3236b20504fe35ea3ca9e Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 27 Mar 2019 07:46:39 +0300 Subject: [PATCH] Fix running applications on linux Application are compiled in the directory linux-build/bin/<%app name%>, not a directory linux-build/bin/<%Debug/Release%>/<%app name%>. Without this hotfix, You receive error OSError: [Errno 2] No such file or directory: '/path/to/project/linux-build/bin/Release/<%app name%>' --- plugins/plugin_compile/project_compile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/plugin_compile/project_compile.py b/plugins/plugin_compile/project_compile.py index 61c258cb..281c46d0 100644 --- a/plugins/plugin_compile/project_compile.py +++ b/plugins/plugin_compile/project_compile.py @@ -1425,7 +1425,7 @@ def build_linux(self): if cfg_obj.build_result_dir is not None: result_dir = os.path.join(build_dir, 'bin', cfg_obj.build_result_dir, build_mode, self.project_name) else: - result_dir = os.path.join(build_dir, 'bin', build_mode, self.project_name) + result_dir = os.path.join(build_dir, 'bin', self.project_name) cocos.copy_files_in_dir(result_dir, output_dir) self.run_root = output_dir