Crates.io | gotpm |
lib.rs | gotpm |
version | 0.2.1 |
source | src |
created_at | 2022-04-14 15:03:44.787355 |
updated_at | 2022-04-16 04:52:22.826894 |
description | A Godot simple package manager |
homepage | https://github.com/vfreitas-/gotpm |
repository | https://github.com/vfreitas-/gotpm |
max_upload_size | |
id | 567582 |
size | 34,843 |
A simple Godot Package Manager to be used in conjunction to git repositories as a simple way of installing your addons without commiting their contents to git.
It tracks your addons within a root file in your project with the addon git URL and it's current version/git reference. So you can install them locally or remotely (CI/CD).
You can start a new gotpm using gotpm init
and them install your first package using gotpm add {url}
.
gotpm add https://github.com/ceceppa/anima -r 0.3.1
The add command will clone the repository on a .got_modules
folder, checkout to the git reference (tag 0.3.1) and copy the contents of the addons
directory to your own addons
folder inside your project.
Your project will end up with a addons/anima
folder.
So you can put the following lines on your .gitignore
file:
.got_modules
addons
Command | Description |
---|---|
gotpm init |
Initialize an empty gotpm.toml file used to track yout project dependencies. |
gotpm install |
Instal the dependencies listed in the project gotpm.toml file. |
gotpm add {package} -r ? |
Add a git package to be used in your Godot project. Where package is the git HTTPS URL and the -r Option refer to a git reference (branch name, commit, tag, etc). |