Crates.io | godot-run |
lib.rs | godot-run |
version | 0.1.0 |
source | src |
created_at | 2024-08-01 02:00:52.0445 |
updated_at | 2024-08-01 02:00:52.0445 |
description | Run Godot projects from GitHub quickly and easily |
homepage | |
repository | https://github.com/yunusey/godot-run |
max_upload_size | |
id | 1321490 |
size | 27,320 |
Easily run and test Godot applications that you see on GitHub on your terminal.
godot-run
is a simple CLI tool that can be used to run and test Godot applications that you see on GitHub quickly on your terminal. Using it is pretty simple:
Usage: godot-run [OPTIONS] <repository>
Arguments:
<repository> The repository to clone from GitHub (ex: "github.com/yunusey/gosu")
Options:
--godot-path <GODOT_PATH>
The path to the Godot executable (tries to find it atomatically, if not specified) (ex: --godot-path="/home/yunusey/.nix-profile/bin/godot4") [default: ]
-e, --extra-arguments <EXTRA_ARGUMENTS>
Extra arguments to pass to the Godot executable (learn more at https://docs.godotengine.org/en/stable/tutorials/editor/command_line_tutorial.html) (ex: --extra-arguments="--resolution 1920x1080") [default: ]
-h, --help
Print help
-V, --version
Print version
Something nice about godot-run
is that you can give it a subpath to the repository, and it will work flawlessly (hopefully :D). For instance, you can run godot-run github.com/godotengine/godot-demo-projects/tree/master/gui/theming_override
. Just make sure that the subpath you give has the project.godot
file. The format of the repository can be any of the following:
You got the point! Just write it somehow, and hopefully godot-run
will handle the rest.
[!warning] Currently,
godot-run
clones the entire repository regardless of whether or not you specified a subpath.
[!warning] I haven't implemented a caching system yet, as I've just made the program for very basic use cases; but if you are interested, please let me know by opening an issue or just implement it yourself and don't forget to open up a PR!
In order to run the program, we need the Godot executable, which you can give to the program by specifying the --godot-path
argument. If you don't specify it, the program will try to find the executable by looking at the paths on your PATH
. However, on the operating systems like Windows, you may have to pass it manually as it may not know where it is exactly at.
Okay, it is pretty obvious that we are just spawning a subprocess that runs Godot from command-line, which you can find more information about here. And you may want to, for instance, run the program in fullscreen mode. How do you do so? Pretty simple, actually! You run this:
godot-run github.com/yunusey/gosu --extra-arguments="--fullscreen"
Add a caching system
--save-dir
to save the repositories to a specific directory--no-cache
to disable the caching--update-cache
to update the cache no matter what the last commit isIf possible, just clone the subpath instead of the entire repository.
I would like to thank all these libraries and software that were used in the development of this project: