diff --git a/tools/framework-compile/bin/gen_cocos_libs.py b/tools/framework-compile/bin/gen_cocos_libs.py index a461c89febee..91975b471b8c 100755 --- a/tools/framework-compile/bin/gen_cocos_libs.py +++ b/tools/framework-compile/bin/gen_cocos_libs.py @@ -1,5 +1,5 @@ #!/usr/bin/python -#-*- coding: UTF-8 -*- +#-*- coding: utf-8 -*- import os import sys @@ -321,6 +321,8 @@ def compile_android(self): sys_folder_name = "windows%s" % bit_str elif utils_cocos.os_is_mac(): sys_folder_name = "darwin-x86_64" + elif utils_cocos.os_is_linux: + sys_folder_name = "linux-x86_64" # set strip execute file name if utils_cocos.os_is_win32(): diff --git a/tools/framework-compile/bin/utils_cocos.py b/tools/framework-compile/bin/utils_cocos.py index 9aac523c9be1..e5b9505efbe8 100755 --- a/tools/framework-compile/bin/utils_cocos.py +++ b/tools/framework-compile/bin/utils_cocos.py @@ -1,5 +1,5 @@ #!/usr/bin/python -#-*- coding: UTF-8 -*- +#-*- coding: utf-8 -*- import os import sys @@ -19,6 +19,9 @@ def is_32bit_windows(): def os_is_mac(): return sys.platform == 'darwin' +def os_is_linux(): + return sys.platform == "linux" or sys.platform == "linux2" + def convert_to_python_path(path): return path.replace("\\","/")