cocos js 发布

来源:互联网 发布:java 开发平台 开源 编辑:程序博客网 时间:2024/05/21 09:37
项目发布


6.1 Mac / Win32平台发布


直接运行cocos compile -p mac|win32 -m release即可打包出发布包,运行成功后可以在publish/目录下找到可执行文件。


6.2 iOS平台发布


运行cocos compile -p ios -m release --sign-identity "iPhone Distribution:xxxxxxxx"使用你自己的发布签名来打包出发布包,结果同样可以在publish/目录下找到。


6.3 Android平台发布


  1. 运行cocos compile -p android -m release --ndk-mode release打包出apk包。
  2. 在publish/目录下找到打包出的apk,使用jarsigner工具对该apk添加签名,具体步骤见Google官方文档。


6.4 Web平台发布


运行cocos compile -p web -m release既可在publish/目录下生成独立的发布文件夹,将该文件夹部署到你的服务器上,用户即可访问。


命令中添加--advance可以开启closure compiler工具高级压缩功能,该模式对代码有一定要求,如果发现打包之后无法正常运行请参考Closure Compiler Advanced Compilation文档。
0 0
原创粉丝点击