dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.09k stars 1.56k forks source link

Install dart-sdk for windows through winget #43977

Open RatakondalaArun opened 3 years ago

RatakondalaArun commented 3 years ago

Support for installing dart-sdk through Winget( official windows package manager).

parlough commented 3 years ago

This would be quite nice for those using Windows, but it seems it only supports (msi?) installers rather than zip like Chocolatey. I cannot seem to find any archive of these installer so perhaps they're not included in Dart's release infrastructure at all, otherwise a community member could also handle including the SDK as a winget pkg.

parlough commented 2 years ago

As of now, winget is bundled by default:

Windows Package Manager winget command-line tool is bundled with Windows 11 and modern versions of Windows 10 by default as the App Installer.

Building supported executables and adding them to the winget repository would greatly reduce developer friction for Windows users, which currently requires either manually downloading and setting path, or downloading a third party tool.

alanlivio commented 1 year ago

It is a very interesting feature.

rifkyputra commented 1 year ago

any update ?

rubenferreira97 commented 1 year ago

This would be quite nice for those using Windows, but it seems it only supports (msi?) installers rather than zip like Chocolatey. I cannot seem to find any archive of these installer so perhaps they're not included in Dart's release infrastructure at all, otherwise a community member could also handle including the SDK as a winget pkg.

@parlough With https://github.com/microsoft/winget-cli/issues/140 closed is now possible to bundle dart-sdk as a zip?

parlough commented 1 year ago

It seems like progress has been made yes, but it doesn't look to be completely ready yet. After some investigation, it seems the winget package repository (Windows Package Manager Community Repository) is not accepting portable zip-based manifests yet, and it looks like support for adding a whole directory to the path is still needed. Here's a potential PR you could track: https://github.com/microsoft/winget-pkgs/pull/92317

AlvaroVasconcelos commented 6 months ago

any update ?