Can
Be Better

win64下运行Cocos3.x的luacompile自动脚本报错

1.报错信息

 


D:\work\runtime\gameclient>cocos luacompile -s .\src -d .\Encrypted\src -e -k mili -b milicompany   && pause
执行命令:luacompile
通过 luacompile 命令对 lua 文件进行 XXTEA 加密以及编译为字节码的处理。
编译为字节码的功能基于 LuaJIT v2.0.3,所以目前编译成字节码的文件不适用于 iOS 64位设备。
正在处理 lua 文件。
正在将 D:\work\runtime\gameclient\src\app\battle\skillFrameRate.lua 编译为字节码...
文件名、目录名或卷标语法不正确。

2.解决方案

问题:cocos.py文件的run_cmd函数报错,应该是log_path这里出问题了,因为日志输出/.cocos\cocos.log
初步怀疑是日志路径引发的问题,所以加密要在linux环境进行??


    @staticmethod
    def run_cmd(command, verbose, cwd=None):
        if verbose:
            Logging.debug(MultiLanguage.get_string('COCOS_DEBUG_RUNNING_CMD_FMT', ''.join(command)))
        else:
            log_path = CCPlugin._log_path()
            # command += ' >"%s" 2>&1' % log_path
        if os_is_win32():
            ret = subprocess.call(command)
        else:
            ret = subprocess.call(command, shell=True)
赞(0) 打赏
不开启评论,如有问题疑问请发邮件。[email protected]最长的路 » win64下运行Cocos3.x的luacompile自动脚本报错
分享到: 更多 (0)

相关推荐

  • 暂无文章