Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miltontom/lovecraft
Craft your LÖVE games from the command-line
https://github.com/miltontom/lovecraft
cli game-distribution game-package love2d love2d-game-distribution
Last synced: 2 months ago
JSON representation
Craft your LÖVE games from the command-line
- Host: GitHub
- URL: https://github.com/miltontom/lovecraft
- Owner: miltontom
- Created: 2024-05-14T04:00:56.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-10T07:02:44.000Z (7 months ago)
- Last Synced: 2024-10-01T08:02:26.120Z (3 months ago)
- Topics: cli, game-distribution, game-package, love2d, love2d-game-distribution
- Language: Python
- Homepage:
- Size: 70.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
___
# LöveCraftA simple CLI tool to package games made with LÖVE on Windows.
## Features
* Package games with just one command
* Easily add icon to the executable
* Each project can have it's own **LöveCraft** config file
* Great tool for consistent packaging## Requirements
* [LÖVE](https://love2d.org/) framework available in `PATH`
* [ResourceHacker](https://www.angusj.com/resourcehacker/) available in `PATH`
* Optional `craft.ini` file with the preferred [configurations](#config) avaiable in the root of the project directory.
* Optional `.exclude` file in the root of the project directory with files and folders in relative paths to avoid archiving before packaging the game.**NOTE**: *Look inside the example folder for a sample game project*
## Installation
1. [Download](https://github.com/miltontom/lovecraft/releases) the binary.
2. Add the path to the binary location to the `PATH` environment variable.## Usage
```
Usage: lovecraft.exe [OPTIONS] [SRC]Packages LÖVE game for distribution.
SRC - Path to project directory
Options:
-n, --name TEXT Name for the game
-i, --icon PATH Path to '.ico' file
--crafts-dir Show the packaging location and exit.
--version Show the version and exit.
--help Show this message and exit.
```
* The packaged game is created in the `%USERPROFILE%\crafts` directory.
* The `--name` and `--icon` are optional and there are fallback values for them if not provided.
* Running `lovecraft` with no path provided also works when you're in the project directory or by providing `.` as an argument.## Config
* You can create a config for the name and icon in the project's root if you're packaging
the game consistently.
* If `--name` or `--icon` is provided, the config file is not considered.
```ini
; Sample craft.ini file
[Game]
name = MyAwesomeGame
icon = assets\icon\icon.ico
```