ikbencasdoei / godot-voip

godot-voip is a Godot Engine addon which makes it very easy to setup a real-time voice-chat system in your Godot game. This addon also includes a demo project.
https://godotengine.org/asset-library/asset/425
MIT License
196 stars 13 forks source link

Tip for submitting both a demo and an addon from the same repo #15

Closed aaronfranke closed 3 years ago

aaronfranke commented 3 years ago

I noticed that you recently submitted Godot VoIP Demo in addition to Godot VoIP. Here's a little trick that I use for my assets GUI in VR Demo and GUI in VR Addon.

We can use the .gitattributes file to tell GitHub to exclude files when generating the ZIP. For GUI in VR Demo, the file looks like this, with very little excluded. Then, I have a separate "addon" branch for the addon, and all it does is add some more lines to this file to exclude more things, such that it looks like this. Any time you update the asset, just rebase this "addon" branch with the added exclusions, force-push, and submit the new commit hashes.

Side note: You should add eol=lf to the existing line in your .gitattributes so that Git automatically fixes line endings.

ikbencasdoei commented 3 years ago

That's a pretty good method. Thanks for the tip!