love-release - in Lua ! - makes LÖVE game release easier

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
Kookerus
Prole
Posts: 39
Joined: Sat Jun 28, 2014 4:33 am

Re: Love-Release. Bash script to make it easier.

Post by Kookerus »

I've been running it from the terminal and the functions are where it gets screwed up.
I can run it perfectly fine after removing the extension
User avatar
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

Re: Love-Release. Bash script to make it easier.

Post by murks »

Really funky... two more things you can check:
1. The script has #!/bin/bash there, is bash at this location?
2. try to run the script with 'bash love-release.sh' and see what happens.
Kookerus
Prole
Posts: 39
Joined: Sat Jun 28, 2014 4:33 am

Re: Love-Release. Bash script to make it easier.

Post by Kookerus »

Running it with "bash love-release.sh" works! Thanks for the help.

On another note, how do I make a Debian package? I've run the script with "bash love-release.sh -d -v 0.9.0 main.lua" but it always tells me "Could not build a Debian package. Missing informations."
What switches do I have to run the script with to build a Debian package?
User avatar
Rucikir
Party member
Posts: 129
Joined: Tue Nov 05, 2013 6:33 pm

Re: Love-Release. Bash script to make it easier.

Post by Rucikir »

RTFM ! (I always wanted to say that about something i've made)
Keep in mind that everything you pass as argument (if it has spaces) should be encapsulated by double quotes.
There are also a couple of packages you should install first: fakeroot and dpkg-deb.

--description
Set the description of your project.
--homepage
Set the homepage of your project.
--maintainer-email
Set the maintainer’s email.
--maintainer-name
Set the maintainer’s name. The company name is used by default.
--package-name
Set the name of the package and the command that will be used to launch your game. By default, it is the name of your project converted to lowercase, with eventual spaces replaced by dashes.
--version
Set the version of your package.
User avatar
Rucikir
Party member
Posts: 129
Joined: Tue Nov 05, 2013 6:33 pm

Re: Love-Release. Bash script to make it easier.

Post by Rucikir »

Oh, and if you only have one file, (main.lua) you don't have to specify it, the script will automatically zip every file it founds.
Kookerus
Prole
Posts: 39
Joined: Sat Jun 28, 2014 4:33 am

Re: Love-Release. Bash script to make it easier.

Post by Kookerus »

Thanks, it was the quotes that were getting me.
Also, when I open the .deb file, the software center tells me "Dependency is not satisfiable: love (>=0.9.1)" Even though I have 0.9.1 installed. Is that because in the Ubuntu reps it's a bit outdated?
Kookerus
Prole
Posts: 39
Joined: Sat Jun 28, 2014 4:33 am

Re: Love-Release. Bash script to make it easier.

Post by Kookerus »

Uninstalling love and love-unstable and installing love from the .deb provided by the site worked.
Sorry I'm such a noob :death:
User avatar
Rucikir
Party member
Posts: 129
Joined: Tue Nov 05, 2013 6:33 pm

Re: Love-Release. Bash script to make it easier.

Post by Rucikir »

Oh, and if provide a conf.lua file where you add t.version = "0.9.1", or if you use the latest love version available, there is no use for the -v option, as the script will use lua to detect the version you are using, or fall back to the latest version available.

EDIT:
I have changed #!/bin/bash to #!/usr/bin/env bash, as requested.
And I also have changed the functions that used function functionname {} syntax to functionname () {}.
I don't know if it will change anything, but maybe it will solve some problems one can encounter.

I don't have time to add functionalities for the moment, but if you find bugs or something that doesn't behave normally, i'll find a way to get time to fix it or help you.
User avatar
dusoft
Party member
Posts: 634
Joined: Fri Nov 08, 2013 12:07 am
Location: Europe usually
Contact:

Re: Love-Release. Bash script to make it easier.

Post by dusoft »

Rucikir wrote:Oh, and if provide a conf.lua file where you add t.version = "0.9.1", or if you use the latest love version available, there is no use for the -v option, as the script will use lua to detect the version you are using, or fall back to the latest version available.
Very good, thanks! I have put together short info on distributing Love2d games.
User avatar
Rucikir
Party member
Posts: 129
Joined: Tue Nov 05, 2013 6:33 pm

Re: Love-Release. Bash script to make it easier.

Post by Rucikir »

Thank you ! This is awesome. I've added a short note about you in the first post.
I'll will work on the new ideas starting the beginnig of september. Sorry guys !
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests