Dart plugin for vfox. It installs the official Dart SDK from Google's Dart SDK archive and selects it for your shells, so that dart and dartaotruntime are on your PATH.
After installing vfox, add the plugin, then install and select an SDK:
vfox add dart
vfox install dart@stable
vfox use --global dart@stable
dart --versiondart --version reports the SDK you selected. For dart to be on your PATH, vfox has to be hooked into your shell — see the quick start. The plugin sets only PATH (to <install-root>/bin); it sets no other environment variable.
There are three release channels: stable, dev and beta. A channel name installs the newest version published on that channel:
vfox install dart@stable # newest stable
vfox install dart@dev # newest dev build
vfox install dart@beta # newest beta buildAn exact version works too, and the same names work with use:
vfox install dart@3.14.0
vfox use --global dart@3.14.0
vfox current dart # selected version in this scope
vfox list dart # installed SDKs
vfox uninstall dart@3.14.0vfox search dart lists the versions from all three channels, newest first; the note on each entry is the channel it came from (stable, dev or beta). See versions.md.
If a Dart SDK is already on the machine — unpacked by hand, bundled with Flutter, or installed by another tool — vfox link --detect dart finds it (needs vfox 1.1.0 or later) and links it without downloading another copy. vfox lists what it found and links what you pick; vfox link --detect -y dart links everything. SDKs already installed or linked in vfox are skipped.
vfox link --detect dartSee Using SDKs already on the machine for what is searched and how manual linking works.
The plugin supports x64 and ia32 (32-bit x86) on Linux, macOS and Windows. SDK archives are named after the platform, for example dartsdk-linux-x64-release.zip.
| OS | x64 (amd64 → x64) |
ia32 (386 → ia32) |
arm64 |
|---|---|---|---|
| Linux | dartsdk-linux-x64-release.zip |
dartsdk-linux-ia32-release.zip |
not supported |
| macOS | dartsdk-macos-x64-release.zip |
dartsdk-macos-ia32-release.zip |
not supported |
| Windows | dartsdk-windows-x64-release.zip |
dartsdk-windows-ia32-release.zip |
not supported |
arm64 is not supported. On any other architecture the plugin raises an error instead of installing a mismatched SDK. See platforms.md.
The plugin reads version listings from the official Dart SDK archive on Google Cloud Storage. Available lists versions from the stable, dev and beta channels; PreInstall resolves a channel to its latest version (from latest/VERSION) or matches an exact version, then returns the SDK ZIP URL and its SHA-256 checksum from the archive's .sha256sum file; EnvKeys puts <install-root>/bin on PATH. Detect finds Dart SDKs already on the machine for vfox link --detect dart (vfox 1.1.0+). PostInstall and PreUse do nothing. There is no legacy-file parsing or mirror support. See development.md.
- Versions and channels — channels, exact versions, searching and uninstalling (中文)
- Using SDKs already on the machine — adopt Dart SDKs found on this machine (中文)
- Platform support — supported OS and architecture combinations (中文)
- Install from source — build the plugin from a checkout (中文)
- Development — layout, hooks, contracts, tests and releasing (中文)
- E2E tests — the Linux and Windows container suites (中文)
- Changes — changelog (中文)
Maintainers release from the Plugin workflow. The steps and the details are in development.md → Releasing.
- vfox and vfox-plugins
- Dart and the official SDK archive
- plugin-manifest-action, which powers releases
Licensed under the Apache License 2.0; see LICENSE.