Skip to content
version-foxPublic

About

Dart plugin for vfox

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

vfox-dart

中文 | English

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.

Install

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 --version

dart --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.

Versions and channels

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 build

An 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.0

vfox 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.

Already installed SDKs

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 dart

See Using SDKs already on the machine for what is searched and how manual linking works.

Platforms

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.

How it works

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.

Documentation

Releasing this plugin

Maintainers release from the Plugin workflow. The steps and the details are in development.md → Releasing.

Thanks and links

Licensed under the Apache License 2.0; see LICENSE.

About

Dart plugin for vfox

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages