Crates.io | godam |
lib.rs | godam |
version | 0.1.1 |
source | src |
created_at | 2024-09-27 19:22:36.646777 |
updated_at | 2024-09-27 20:51:09.74462 |
description | godam (Godot Asset Manager) is an unofficial minimal command-line tool to install and manage addons from the Godot Asset Library. |
homepage | https://nilsiker.github.io/projects/godam/ |
repository | https://github.com/nilsiker/godam |
max_upload_size | |
id | 1388992 |
size | 93,427 |
godam (Godot Asset Manager) is an unofficial, lightweight command-line tool designed to streamline the management of assets from the Godot Asset Library.
The goal of godam is simple: allow developers to easily manage Godot project assets via the command line, keeping asset dependencies out of version control systems (VCS). Inspired by package managers like Cargo and npm, godam uses a declarative configuration file to track assets, making them easily installable without cluttering your VCS.
⚠️ godam modifies files within your project directory, specifically under the
addons
folder. While care has been taken to avoid any mishaps, always back up your project, understand you are using a tool that creates, modifies and deletes files on your local computer.
Here's a rundown of what godam can currently do:
godam sets up your Godot project by creating a godam.toml
file, a .godam
cache folder, and a .gitignore
within your addons
folder. The .gitignore
ensures that only the godam.toml
configuration file is tracked in Git, while addon files are omitted.
When you run godam install <ID>
, the following happens:
godam.toml
..godam
cache is checked for the asset; if not cached, the asset zip is downloaded.godam.toml
, keeping track of what plugin ID maps to what install folder.addons
folder is extracted from the zip and copied into your project.This process is repeated for every asset listed in the godam.toml
file.
⚠️ godam currently only respects addon folder structure, meaning that it expects to find the
addons
folder in either directly inside the zip file or located under an immediate folder in the archive. Any other folder structure will throw an error, and cannot be installed using godam.
Let's walk through installing LimboAI for Godot 4.3 with godam:
Install godam:
cargo install --git https://github.com/nilsiker/godam
Navigate to your Godot project directory:
cd path/to/your/godot/project
Initialize godam in your project:
godam init
Search for an asset by name:
godam search LimboAI
Install the asset using its ID:
godam install 3228
List all assets managed by godam:
godam list
Install all assets defined in godam.toml
:
godam install
Clean the cache:
godam clean
This is a tool designed to fit my workflow for managing Godot assets via the command line. godam is not an official Godot tool or product, so its functionality and scope are limited to my current use case. That said, it's open to improvement and feedback!
If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request. Contributions are more than welcome!
Here’s what’s on the roadmap for future development:
Want to help make godam even better? I’d love to have your contributions! Whether it’s fixing a bug, adding new features, or suggesting improvements, every bit helps.
To get started:
Be sure to check out the issues tab for ideas on what needs work. Do not be a stranger, feel free to reach out, and let's build something cool together for the Godot community!