Closed linshun closed 11 years ago
@oros this is a pretty good suggestion. Interested in looking at how git submodules work? I've seen it used with the Enyo bootplate project here: https://github.com/enyojs/bootplate
I haven't used submodules but I like this idea (assuming I'm understanding correctly.) @timwindsor I'll drop by for a discussion soon.
WebWorks uses them. Some things work really well, other uses make life very complicated. I'd say for a sample that just needs a "supported" version of a library it is a perfect use for them.
I have my attempt at submodules staged here: https://github.com/oros/BB10-WebWorks-Community-Samples/tree/master/BoxQuest
Basically I command-lined it: git submodule add https://github.com/cocos2d/cocos2d-html5.git boxquest/cocos/
But I can't tell whether I've done it right. I thought the icon for the 'cocos' folder would look different (as in Tim's sample repo) after I pushed the changes back from my PC to Github, but it looks like a regular folder. @timwindsor I may need you to drop by sometime tomorrow to help sort this out.
I will send you a Pull Request to add the submodule today . :)
I may have just gotten it...I'm not sure exactly how though, so give me a few moments to confirm :-)
I do believe I've done something wrong. It's showing up now: https://github.com/oros/BB10-WebWorks-Community-Samples/tree/master/BoxQuest
But it's red, and doesn't link anywhere. I'll take that Pull Request if it's still on the table :-)
You forgot to push .gitmodules file which it is hidden file. So it can't work well. :)
Well, this will be a learning experience if nothing else...okay, just found this: http://blog.jacius.info/git-submodule-cheat-sheet/
Here goes attempt number three.
Could it be that Github simply hasn't caught up? I'm seeing my commits: https://github.com/oros/BB10-WebWorks-Community-Samples/commits/master
Which look right (to me anyways), but the files I thought would be affected aren't. I need to pack up for the night but will get this sorted in the AM.
I fixed the problem. Your path should be "path = BoxQuest/cocos", but no "path = boxquest/cocos".
Woohoo! That seems to have done it. Oh, proper capitalization.
@linshun Pull request is in, let me know what you think of the new guide/tutorials section (eoros@rim.com) once it's live. And thanks again for the help there, I was pretty lost by attempt number three.
@timwindsor I think this one can be closed with the latest merge that was approved.
"To successfully compile this application, you will need to copy the the cocos2d and CocosDenshion folders from the Cocos2d-HTML5 Github repository into the cocos subfolder of this project. The repository is available here: https://github.com/cocos2d/cocos2d-html5"
I suggest you to use a submodule instead of copying. The developers always don't know which version of Cocos2d-html5 will be work well with this sample.