egret hot update

Reference article: http://blog.csdn.net/kenkao/article/details/46622233

 

1. Export an Android project

HelloEUI same level directory

egret create_app android_bag -f HelloEUI -t /Users/pg/Library/Android/sdk/egret-android-support-as-4.0.0

 

2. Enter the HelloEUI directory

  • Execute  egret b -e --runtime native, compile the native project.
  • Execute  egret publish --runtime native -compile, publish the latest updatable resource bundle.

3. The name of the resource package in the project will be modified accordingly EGRET_PUBLISH_ZIP = "game_code_170314151827.zip" ;

Precautions

 

loaderUrl = "http://127.0.0.1:3000/" + EGRET_PUBLISH_ZIP;
updateUrl = "http://127.0.0.1:3000/";
Pay attention to the format, be sure to + EGRET_PUBLISH_ZIP

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326274633&siteId=291194637
Recommended