CapsCollective / raylib-cpp-starter

A portable, automated template for raylib projects with C++ bindings
Other
68 stars 17 forks source link

Reduce git module folder by shallow cloning #19

Closed return215 closed 1 year ago

return215 commented 1 year ago

This PR attempts to reduce the size of .git/modules folder as issued in #18 by performing a shallow clone on each submodule, pulling only the commit that the module points to. I have attempted this on my machine and it reduces the size from 770MB down to just 43MB.

At the same time, this PR updates raylib and raylib-cpp to the latest version at the time, which is 4.5. For some reason, the Linux library outputs inside the vendor/raylib/src folder now, therefore I add a change to Makefile to reflect this.

This is a friendly reminder that shallow cloning is useful on large repos as it saves cloning time, data usage, and local storage usage.

return215 commented 1 year ago

I have already edited the Makefile as requested. If there is nothing else, please merge this PR.