Skip to content

Commit 21dc0fe

Browse files
committed
[v4] disable lua compile
do not compile lua scripts on linux
1 parent 7df5348 commit 21dc0fe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plugins/plugin_compile/project_compile.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -930,9 +930,11 @@ def build(self, platform):
930930
if platform == 'mac' or platform == 'ios':
931931
script_resource_path = os.path.join(self.app_path, 'Contents/Resources/src')
932932

933-
self.compile_script(script_resource_path, platform)
934-
935-
cocos.Logging.info(MultiLanguage.get_string('COMPILE_INFO_BUILD_SUCCEED'))
933+
if platform != 'linux' :
934+
self.compile_script(script_resource_path, platform)
935+
cocos.Logging.info(MultiLanguage.get_string('COMPILE_INFO_BUILD_SUCCEED'))
936+
else:
937+
cocos.Logging.warning(MultiLanguage.get_string('COMPILE_WARNING_NOT_SUPPORT_COMPILE_SCRIPT'))
936938

937939
def _get_build_cfg(self):
938940
build_cfg_dir = self._build_cfg_path()

0 commit comments

Comments
 (0)