MisterDA / love-release

:love_letter: Lua script that makes LÖVE game release easier
MIT License
449 stars 27 forks source link

Include lib directory? #44

Closed egordorichev closed 7 years ago

egordorichev commented 7 years ago

My game has lib directory, and it seems, like it is not included into generated love file. How to fix that?

egordorichev commented 7 years ago

It doesn't include any project directories. Unpacked love file consists only from top-path files.

pablomayobre commented 7 years ago

First, you can edit your posts, no need to double post (double posting means that persons subscribed to the thread receive two emails while if you edit we receive one and we will come and read the whole thing over here)

Second, could you show what you mean with a project structure written like this:

> lib
-->mylib.lua
> src
-->file.lua
>main.lua
>config.lua

Or similar, this lets us see what the structure actually looks like, alternatively post an image of how your folders are structured....

From your posts it's not that easy to understand what you mean

EDIT

On another note, this issue may be related to #36 so be sure to check that one and see if it matches your problem

egordorichev commented 7 years ago

You can find the whole project here.

It structured kind-of like you've showed:


> data
--> images
--> music
--> sounds
--> fonts
> lib
--> libs here
> linit
--> engine here
> main.lua
> config.lua
> other game scripts
pablomayobre commented 7 years ago

So when you package the LÖVE file only has main.lua, config.lua and other game scripts?

Or does it have config.lua and the data folder? Cause this may be #36 as I said above

egordorichev commented 7 years ago

It has only main.lua, config.lua and other game scripts.

pablomayobre commented 7 years ago

Can you try patching project.lua with the fix I proposed at #36 and see if that works?

egordorichev commented 7 years ago

Hm, sorry, where the project.lua can be found in linux system? I can find only a binary.

pablomayobre commented 7 years ago

Try luarocks path in the command line and that should give you a few locations. In one of those you will find a love-release folder.

Inside that there should either be a src folder or the project.lua file, if you see the src folder then project.lua is inside of it.

egordorichev commented 7 years ago

Ok, thanks a lot! The patch fixed this issue.