cocos-creator / cocos-tutorial-hot-update

Tutorial project for Cocos Creator hot update
Other
385 stars 305 forks source link

插件注入的代码中,拼接的临时目录不正确 #40

Open qinhanlei opened 3 years ago

qinhanlei commented 3 years ago

cocos creator 2.4.4

假设 此处L15 storagePath 值为 XXXXX/remote-asset/

此处L16 拼接结果为:XXXXX/remote-asset/_temp/ 而实际目的应该为:XXXXX/remote-asset_temp/ 所以,代码L19-L36 不会执行

BTW: 实际测试,发现 代码L19-L36 并无用武之地?即热更新中断恢复后,am 已会从 XXXXX/remote-asset_temp 中恢复并跳过这些文件的更新。

qinhanlei commented 3 years ago

已提 pr https://github.com/cocos-creator/tutorial-hot-update/pull/43