Page 7 of 15

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

Posted: Wed Jul 23, 2014 11:29 pm
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

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

Posted: Wed Jul 23, 2014 11:58 pm
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.

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

Posted: Thu Jul 24, 2014 1:13 am
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?

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

Posted: Thu Jul 24, 2014 8:29 pm
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.

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

Posted: Thu Jul 24, 2014 8:31 pm
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.

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

Posted: Fri Jul 25, 2014 12:15 am
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?

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

Posted: Fri Jul 25, 2014 3:15 am
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:

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

Posted: Sat Jul 26, 2014 6:59 pm
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.

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

Posted: Tue Jul 29, 2014 10:46 pm
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.

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

Posted: Fri Aug 01, 2014 10:53 pm
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 !