OpenBagTwo / FoxNap

A survival-, multiplayer- and copyright-friendly mod for adding custom music discs to your world
GNU General Public License v3.0
1 stars 1 forks source link

Add license support to the resource pack generator CLI #12

Open OpenBagTwo opened 1 year ago

OpenBagTwo commented 1 year ago

The resource pack generation script itself can accept both a license file and a string "license summary"

https://github.com/OpenBagTwo/FoxNap/blob/b5aa1199fb692593d9e780c1bf9849e85241e813/foxnap_rpg/pack_generator.py#L100-L108

to allow the user to make a redistributable resource pack that's less permissive than CC0, but the CLI currently provides no means of doing so.

(there are other pack customization options that could also be implemented but are less critical)

Fine-grained control is something that I'd prefer to save for if this generator ever gets a full-fat GUI, but for right now, at a bare minimum, the behavior should be that if a LICENSE.md or LICENSE.txt file is found in the music folder, that file gets copied over to the resource pack. I'd also want to enable explicit --license-file and --license-summary command-line flags.

This does not need to be done before the initial release