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
love-release - in Lua ! - makes LÖVE game release easier
Re: Love-Release. Bash script to make it easier.
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.
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.
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?
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.
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.
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.
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.
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?
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.
Uninstalling love and love-unstable and installing love from the .deb provided by the site worked.
Sorry I'm such a noob
Sorry I'm such a noob
Re: Love-Release. Bash script to make it easier.
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.
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.
Very good, thanks! I have put together short info on distributing Love2d games.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.
My boat driving game demo: https://dusoft.itch.io/captain-bradley- ... itius-demo
Re: Love-Release. Bash script to make it easier.
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 !
I'll will work on the new ideas starting the beginnig of september. Sorry guys !
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests