Warning
Windows is currently not supported. See #8 for more information.
drenv is a cross-platform CLI tool that helps you declutter your DragonRuby installations.
drenv is built with Deno and is inspired by rbenv.
Download the executable for your platform from the releases page, then run:
drenv setupThis moves the executable to ~/.drenv/bin and prints the line to add to your
shell profile.
Note
On macOS, if you see a Gatekeeper warning, run:
xattr -d com.apple.quarantine ./drenvNote
Once installed, keep drenv up to date by running drenv upgrade.
Alternatively, you can build from source:
deno compile -A --unstable-kv --output=builds/drenv --target=aarch64-apple-darwin main.tsdrenv installThis signs into your itch.io account and downloads the latest version of DragonRuby GTK. Your credentials are stored as a revocable API key — never as a plaintext password.
Note
drenv install requires a DragonRuby GTK purchase on itch.io.
Only the standard tier is supported at this time.
drenv global <version>drenv new my-gameDownloads and installs the latest version of DragonRuby GTK from itch.io.
Registers a local DragonRuby installation manually. The path can be a .zip
file or a directory containing the dragonruby executable. Useful if you
already have a copy downloaded.
Sets the global DragonRuby version used when creating new projects. Running without arguments prints the current global version.
Lists all registered versions, with the current local version marked:
6.4
* 6.3
5.32
Creates a new DragonRuby project by copying the global version into a new directory.
Updates the current directory's DragonRuby version, preserving the mygame
directory.
Installs a pre-configured library into your project.
Available recipes:
- foodchain - a single-file dependency manager for DragonRuby games.
Moves the drenv executable to ~/.drenv/bin and shows instructions for
adding it to your $PATH.
Downloads and installs the latest version of drenv.
Tested on macOS (Apple Silicon) with DragonRuby standard 5.32, 6.3, 6.4, and 6.18.