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()