Easy Way to update a project to a new version of cocos2d-x

Hello,

Do you know a easy way to upgrade a cocos2d-x project to a new version of cocos2d-x without creating a new project and make a copy/past of the files ?

In advance thanks,

Here what I did, not sure the best way but works for me.

I create git projects like…

Classes
Resources

When I need to upgrade I create a new project and delete folders and clone the git above. I guess maybe this is almost same as copy/paste file.

1 Like

so much depends on version you upgrading from… if cocos structure changed better t ocreate new project inother cases just update cocos2d folder

Thanks for yours answers,

Yes, i try it but the compilation crash after from cocos2d-x-3.7 to cocos2d-x-3.8.

on which platform it’s crashing and what error, I would say that 3.7 and 3.8 is quite different versions :slight_smile: and some functionality not compatible from older one. Also 3.8 have some small bugs, but can be easily fixed.

1 Like

I’ve been wanting to try RapidGame. It prebuilds cocos2d-x and symlinks in the lib so it can switch out versions of cocos with a simple command, and multiple games can share a prebuilt version of cocos.

1 Like

http://pooperpig.com/?p=71

that’s how I do it.

2 Likes

Just discovered that cocos gen-libs exists in version 3.8+ for making prebuilts. Instead of the engine existing in a folder/subproject in your game, it can just sit in the root cocos folder and be added to the search path.

1 Like

Thanks for you answers,