Open juryrigging opened 1 year ago
I try on linux using wine is working, the Windows release on Linux.
Install wine (on Ubuntu : sudo apt install wine)
Find where wine was installed In my cause was on /home/MYNAME/.wine/drive_c
Inside of drive_c : Create folder where you will put the game and copy or move " .exe, dlls others" inside of it.
Terminal : wine c:/games/legend_of_lua/legend.exe
@IzaltinoDSouza, it's better to just use menulibre
to create a wine.desktop with the command wine %U
(or just wine
if you use KDE).
I still encourage making a Linux version, even tho if only compiled once in a few versions like x.0 versions, because it makes less headache for Linux users and on the long run prevents wine from not working for some reason.
also, Love2d greatly helps to code once, compile to all platforms.
also, @juryrigging, the game should be compiled as an AppImage, not a .love
also, @juryrigging, just for the obvious: you can actually compile it by yourself, just rename the .exe to .zip and use the files inside to make an AppImage, or just straight up rename it to .love.
Apparently YT disappears my comments about packaging for linux when I respond to those who ask. I don't know what about my posts causes the issue, they never give me a warning or anything. But it is probably more useful long term to say something here rather than over there anyway.
To distribute a linux release, zip your game from inside the containing folder, so main.lua is at the top level of the archive. To put it another way, you want everything except the folder your project is saved in, because love2d doesn't read beyond the first level of the directory tree when looking for initial data. Give your archive a .love extension instead of .zip (e.g legend-of-lua.love). That should do for the most part, along with a note to this affect:
There are other options you might want to explore later to make things more robust as love versions change, but the above doesn't require much extra effort and should get you up and running now.
For linux users there are a few options to run the game:
Hope this is helpful.