Crystal language plugin for vfox.
Support Crystal ≥ 0.24.2 and Nightly Builds (≥ 1.3.0 for Windows).
After installing vfox, install the plugin by running:
vfox add crystalNext, search and select the version to install. By default, vfox keeps cache for available versions, use the --no-cache flag to delete the cache file.
vfox search crystal
vfox search crystal --no-cache && vfox search crystalInstall the latest stable version with latest tag.
vfox install crystal@latestTo install nightly builds, use dev or nightly tag, or use the system date tag.
vfox install crystal@dev
vfox install crystal@nightly
vfox install crystal@20240701They are the same and will install nightly builds labelled with the current date. Use it with:
vfox use crystal@20240701Some environment variables are served as following:
| Environment variables | Default value | Description |
|---|---|---|
| GITHUB_URL | https://github.com/ |
GitHub mirror URL |
| GITHUB_TOKEN | personal GitHub token |
It's recommended to set the GITHUB_TOKEN environment variable or modify the plugin asset for efficiency. Search with --no-cache flag to see the changes straight away.
sed -i 's/githubToken = os.getenv("GITHUB_TOKEN") or "",/githubToken = os.getenv("GITHUB_TOKEN") or "<YOUR_GITHUB_TOKEN>",/' ~/.version-fox/plugin/crystal/lib/util.luaThis will:
- accelerate getting the latest version
- accelerate fetching available versions
- enable installing nightly builds on Windows