demonnic / muddler

A build tool for Mudlet package developers
MIT License
40 stars 12 forks source link

Icon file included twice? #16

Closed Kebap closed 3 years ago

Kebap commented 3 years ago

So I added an icon file to my muddler package, but it seems to be included twice:

Once in the main directory, then again in the icon's sub-folder. Did I do it wrong? I only put it in "resources" folder and linked it in config.lua..

Kebap commented 3 years ago

There seems to be no documentation about the "resources" folder at all.

How can files put in there be accessed from inside Lua scripts?

demonnic commented 3 years ago

You did it right, I am only copying it rather than moving it as it may also be something you want to use in your package itself.

src/resources/* is copied into the package root, so that is where you want to put those files (background images, fonts, etc).

This may be a thing that I didn't think to document because it was obvious to me as the person who made the decision, I'll add some documentation for it

Kebap commented 3 years ago

Fair enough, thanks!