@@ -0,0 +1 @@
+[1,0,0,["cc.ImageAsset"],0,[{"fmt":"0","w":82,"h":984},-1],[0],0,[],[],[]]
@@ -1,4 +1,28 @@
-
+// ---- 扩展注入热更新脚本开始 ----
+ jsb.fileUtils.addSearchPath(jsb.fileUtils.getWritablePath() + "oops_framework_remote", true);
+ var fileList = [];
+ var storagePath = "oops_framework_remote";
+ var tempPath = storagePath + "_temp/";
+ var baseOffset = tempPath.length;
+
+ if (jsb.fileUtils.isDirectoryExist(tempPath) && !jsb.fileUtils.isFileExist(tempPath + 'project.manifest.temp')) {
+ jsb.fileUtils.listFilesRecursively(tempPath, fileList);
+ fileList.forEach(srcPath => {
+ var relativePath = srcPath.substr(baseOffset);
+ var dstPath = storagePath + relativePath;
+ if (srcPath[srcPath.length - 1] === "/") {
+ jsb.fileUtils.createDirectory(dstPath)
+ }
+ else {
+ if (jsb.fileUtils.isFileExist(dstPath)) {
+ jsb.fileUtils.removeFile(dstPath)
+ jsb.fileUtils.renameFile(srcPath, dstPath);
+ })
+ jsb.fileUtils.removeDirectory(tempPath);
+// ---- 扩展注入热更新脚本结束 ----
// SystemJS support.
window.self = window;