我是在win10下调试的。
工程名叫hotupdate。
在C:\Users\Administrator\AppData\Local中,可以看到2个文件hotupdate\hotupdate_temp.
其中hotupdate_temp有从服务器下载过来的4个文件res\src\project.manifest.temp\version.manifest
而hotupdate中,只有jsb.sqlite
我是在win10下调试的。
工程名叫hotupdate。
在C:\Users\Administrator\AppData\Local中,可以看到2个文件hotupdate\hotupdate_temp.
其中hotupdate_temp有从服务器下载过来的4个文件res\src\project.manifest.temp\version.manifest
而hotupdate中,只有jsb.sqlite
小白,刚接触热更新,需要热更新组件hotupdate.js
现在刅一个问题,热更新失败。
代码停留在updateCb: function (event) {
。。。
case jsb.EventAssetsManager.UPDATE_FAILED:
this.label.string = 'Update failed. ’ + event.getMessage();
this._updating = false;
this._canRetry = true;
break;
…
}
确定服务器有manifest版本文件和资源,确保客户端能够访问到。然后检查version.manifest文件的地址是否与服务器一致,具体查看官方的说明…
我用win调试。ccc1.9版本
我的工程名为hotupdate,能够在C:\Users\Administrator\AppData\Local中
看到2个文件hotupdate、hotupdate_temp.
其中hotupdate_temp应该为下载的文件,每次update都会随着时间的变化而变化。
而hotupdate却没有更新。