Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mebens/love-builder

A Ruby script that helps with creating .love files and merged executables on Mac and Linux. (For the LÖVE game engine)
https://github.com/mebens/love-builder

Last synced: about 1 month ago
JSON representation

A Ruby script that helps with creating .love files and merged executables on Mac and Linux. (For the LÖVE game engine)

Awesome Lists containing this project

README

        

This is a little script written in Ruby that helps [LÖVE](http://love2d.org) developers with creating .love files, merged executables, and new LÖVE projects on Mac and Linux.

Before executing this script, make sure you're in your project directory.

## Setup

On a Mac (you can most likely do this on Linux) you can edit your ~/.bash\_profile file to create an alias for the script. Open up ~/.bash\_profile in a text editor, with a command like this (for Mac):

open -a TextEdit ~/.bash_profile

Then add this line:

alias lovebuilder="/path/to/where/you/put/the/script/love_builder.rb"

Now you'll be able to execute it like this:

lovebuilder

## .love Files

To create a .love file execute this command:

lovebuilder archive $location_for_love_file
# or
lovebuilder $location_for_love_file

Replace $location\_for\_love\_file with where you want the .love placed. Adding a .love extension to this path is optional.

## Merged Executables

To create a merged executable, first create a copy of love.app or the love executable (depending on your OS) and copy it just outside your project directory. Rename the new executable to whatever you want. Making sure you're in your project directory, execute this command:

lovebuilder merge ../$copied_executable_name

Replace $copied\_executable\_name with whatever you named your executable. If the name you give ends with .app, the script will create a Mac app, otherwise it will create a Linux executable.

## New Projects

To create a new project execute this command:

lovebuilder new $project_directory [$template]

This will create a new directory at $project\_directory and copy all files in the specified template to it.

A directory named "templates" is included in the same directory as this script. This directory will be searched for a directory inside it named $template. If $template isn't specified, then the directory named "default" will be used.