Distributing your games (making a .love file)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Distributing your games (making a .love file)

Post by ivan »

You can use my (cross-platform) library which can export to .love from Lua
https://github.com/2dengine/love.maker
Last edited by ivan on Sat Dec 11, 2021 8:20 am, edited 1 time in total.
Anase Skyrider
Prole
Posts: 16
Joined: Sun Jan 31, 2021 12:47 am

Re: Distributing your games (making a .love file)

Post by Anase Skyrider »

I've made a Windows solution to the game distribution process, with automatic creation of the .exe file and everything. It uses the powershell method of archiving.
https://love2d.org/forums/viewtopic.php ... 49#p238749
User avatar
RocketSocketGames
Prole
Posts: 8
Joined: Tue Jul 20, 2021 5:51 pm

Re: Distributing your games (making a .love file)

Post by RocketSocketGames »

whats a modern way of doing this?
Ha, i totally know lua!
ToastersUnited
Prole
Posts: 5
Joined: Mon Jul 12, 2021 8:22 am

Re: Distributing your games (making a .love file)

Post by ToastersUnited »

Is this outdated? From 2009?
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: Distributing your games (making a .love file)

Post by ReFreezed »

You create .zip/.love files the same way you always have. It's not outdated and will probably never be.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
Gunroar:Cannon()
Party member
Posts: 1142
Joined: Thu Dec 10, 2020 1:57 am

Re: Distributing your games (making a .love file)

Post by Gunroar:Cannon() »

RocketSocketGames wrote: Wed Jul 21, 2021 1:33 am whats a modern way of doing this?
Is it the .love file or exe(or something else I may be missing)? If it's the .love file then I just zip everything in the folder the "game" is in then change its extension name from ".zip" to ".love". Works vice versa for me too :P .

Edit:dang, ReFreezed, I was 4 minutes late :rofl:
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
User avatar
RocketSocketGames
Prole
Posts: 8
Joined: Tue Jul 20, 2021 5:51 pm

Re: Distributing your games (making a .love file)

Post by RocketSocketGames »

Gunroar:Cannon() wrote: Wed Jul 21, 2021 10:45 amchange its extension name from ".zip" to ".love". Works vice versa for me too :P .
easier said than done. i use windows 10 and the .zip part of the file doesnt show up in the name. so i cant do that.
Ha, i totally know lua!
User avatar
tio
Citizen
Posts: 61
Joined: Thu Dec 12, 2013 1:04 pm
Location: BR BR?
Contact:

Re: Distributing your games (making a .love file)

Post by tio »

RocketSocketGames wrote: Wed Jul 28, 2021 4:44 pm
Gunroar:Cannon() wrote: Wed Jul 21, 2021 10:45 amchange its extension name from ".zip" to ".love". Works vice versa for me too :P .
easier said than done. i use windows 10 and the .zip part of the file doesnt show up in the name. so i cant do that.
google "windows 10 show files extensions".
User avatar
idbrii
Prole
Posts: 34
Joined: Sat Jun 12, 2021 5:07 am

Re: Distributing your games (making a .love file)

Post by idbrii »

RocketSocketGames wrote: Wed Jul 21, 2021 1:33 am whats a modern way of doing this?
makelove works really well. If you have python, it's easy to install and use. I use it on Windows, but it builds for multiple platforms and on multiple platforms.

You can even configure it to build for lovejs and host a server so you can test your lovejs build without uploading it anywhere:

Code: Select all

postbuild = [
    "unzip {build_directory}/lovejs/projectname-lovejs.zip -d {build_directory}/lovejs",
    "start http://127.0.0.1:8000", # use open or xdg-open on macos/linux
    "python -m http.server 8000 --bind 127.0.0.1 --directory {build_directory}/lovejs/projectname",
]
I've been fixing and contributing changes and my fork can even automatically push builds to itch.io. (But you'll have to know how to install python packages from github to be able to use it until those changes are accepted upstream.)
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 3 guests