From 21dc0fe5ae74506d6b7f8d50736b3e3460a02ef8 Mon Sep 17 00:00:00 2001 From: Arnold <397136899@qq.com> Date: Wed, 25 Sep 2019 10:30:32 +0800 Subject: [PATCH] [v4] disable lua compile do not compile lua scripts on linux --- plugins/plugin_compile/project_compile.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/plugin_compile/project_compile.py b/plugins/plugin_compile/project_compile.py index 5cdf480b..827d58a2 100644 --- a/plugins/plugin_compile/project_compile.py +++ b/plugins/plugin_compile/project_compile.py @@ -930,9 +930,11 @@ def build(self, platform): if platform == 'mac' or platform == 'ios': script_resource_path = os.path.join(self.app_path, 'Contents/Resources/src') - self.compile_script(script_resource_path, platform) - - cocos.Logging.info(MultiLanguage.get_string('COMPILE_INFO_BUILD_SUCCEED')) + if platform != 'linux' : + self.compile_script(script_resource_path, platform) + cocos.Logging.info(MultiLanguage.get_string('COMPILE_INFO_BUILD_SUCCEED')) + else: + cocos.Logging.warning(MultiLanguage.get_string('COMPILE_WARNING_NOT_SUPPORT_COMPILE_SCRIPT')) def _get_build_cfg(self): build_cfg_dir = self._build_cfg_path()