love-maker distribution script
Posted: Fri Dec 12, 2014 8:17 pm
So I'm new to love, and even lua for that matter, but I'm a quick learner and I'm enjoying it. Anyway, I'm pretty big on automation, so I wrote myself a quick script to build my love games with the click of a button. After some tinkering, I decided to make it public, cause I think it works pretty well!
I also just found out after glancing at the board that there's already a quite popular love distribution script someone published on github... so this thing of mine may not be wanted, but I'm going to put it out there anyway!
love-maker - for all of your love making needs
I'll explain briefly how it works:
What I've got included in this repository is basically the entire love zip file you can download off the home page, 7za (the 7-zip command line tool), and my shell script.
The folder should be placed in the root directory of your project.
All of your lua files should be inside the ./src directory relative to the project root, unless you decide to change that variable inside my script, which is easy to do and detailed in the readme.
When you run the script, I use 7-zip to make a zip out of your lua files, I change the extension of that to .love, I copy that file and love.exe together and place that into the bin, I delete the .love file I made, and then I copy all of the dll's into the bin! It's quite simple really and ready for distribution. You don't even have to set the name of the project (unless you want the name to be different that the name of your project root folder...).
As I said before, use it if you feel like it, though there are already other things out there. It's actually a simple enough process, I wouldn't be surprised if just about everybody did it themselves...
As always, if you've got any suggestions for how I can fix/improve this thingy, feel free to let me know, you use github for what it's supposed to be used for!
I also just found out after glancing at the board that there's already a quite popular love distribution script someone published on github... so this thing of mine may not be wanted, but I'm going to put it out there anyway!
love-maker - for all of your love making needs
I'll explain briefly how it works:
What I've got included in this repository is basically the entire love zip file you can download off the home page, 7za (the 7-zip command line tool), and my shell script.
The folder should be placed in the root directory of your project.
All of your lua files should be inside the ./src directory relative to the project root, unless you decide to change that variable inside my script, which is easy to do and detailed in the readme.
When you run the script, I use 7-zip to make a zip out of your lua files, I change the extension of that to .love, I copy that file and love.exe together and place that into the bin, I delete the .love file I made, and then I copy all of the dll's into the bin! It's quite simple really and ready for distribution. You don't even have to set the name of the project (unless you want the name to be different that the name of your project root folder...).
As I said before, use it if you feel like it, though there are already other things out there. It's actually a simple enough process, I wouldn't be surprised if just about everybody did it themselves...
As always, if you've got any suggestions for how I can fix/improve this thingy, feel free to let me know, you use github for what it's supposed to be used for!