Cocos Creator Hot Update

I need help for hot update in cocos creator.

I have a small game A using hot update functions and a project game B using same hot update url like game A.

And I want the game A when load can br replace by hot update via game B.
I already try it but it only work for the first time. If I kill the app then it come back with game A.
Please help me.

Hello, make sure the version number of the manifest file in your installation package is smaller than the remote version number, otherwise the file downloaded by the hot update will be deleted the second time you enter

1赞

The version of mainfest must be smaller then hot update can work, but problem is after run hot update finished the game updated but if I kill the app in the background then open again it return the original version but the mainfest was updated then the hot update said no update.

Do you add search path setting logic to main.js?

How to add the search path setting logic to main.js bro?
I didn’t update anything into main.js.
I attached the main.js file and hotupdate scripts please help to check.
main.js.zip (2.8 KB) ==> main.js file.
Splash.js.zip (2.6 KB) ==> Hot update scripts