egret暖更新
egret热更新
参考文章:http://blog.****.net/kenkao/article/details/46622233
1.导出一个安卓工程
HelloEUI同级目录下
egret create_app android_bag -f HelloEUI -t /Users/pg/Library/Android/sdk/egret-android-support-as-4.0.0
2.进入HelloEUI目录下
- 执行
egret b -e --runtime native
,编译native项目。 - 执行
egret publish --runtime native -compile
,发布最新的可更新的资源包。
3.工程里面资源包名字会跟着修改EGRET_PUBLISH_ZIP = "game_code_170314151827.zip";
注意事项
loaderUrl = "http://127.0.0.1:3000/" + EGRET_PUBLISH_ZIP; updateUrl = "http://127.0.0.1:3000/"; 格式要注意,一定要+ EGRET_PUBLISH_ZIP