bun
bun copied to clipboard
Support winget to download Bun
What is the problem this feature would solve?
What is the feature you are proposing to solve the problem?
目前通过 brew 安装的 macos 的 bun 命令行需要手动设置全局变量
What alternatives have you considered?
crul ... 支持自动设置全平台的命令行全局变量
homebrew is already supported, see https://github.com/oven-sh/homebrew-bun
homebrew is already supported, see https://github.com/oven-sh/homebrew-bun
homebrew Global variables bun or bunx will not be automatically set after installation Causes bun to be undefined after closing the current command line program
I would like to see this happen to. Since winget is getting more and more popular. And I really like it.
- https://github.com/microsoft/winget-pkgs/pull/147222
- https://github.com/microsoft/winget-pkgs/pull/147226
- https://github.com/oven-sh/bun/pull/9770
@sitiom after the PRs are merged and updates are automated, it might make sense to update the docs for installing the package over at https://bun.sh/blog/bun-v1.1#getting-started should be updated from:
> powershell -c "irm bun.sh/install.ps1 | iex"
to
winget install Oven-sh.Bun
or winget install Oven-sh.Bun
(depending on processor instruction support).
Yes, of course 🙂 (Can't edit the blog post though):
- https://github.com/oven-sh/bun/pull/9806
The 1.1.0 full version supports were in
- microsoft/winget-pkgs#147992
- microsoft/winget-pkgs#147991
- microsoft/winget-pkgs#147226
- microsoft/winget-pkgs#147222
Blocker: https://github.com/oven-sh/bun/pull/9806#issuecomment-2033266871
# Or if your CPU does not support the AVX2 instruction set. You can check by running this command:
This should not be manual. I will look into how this can be solved for
winget
later. If it is not solvable, I don't think we should recommendwinget
's usage for installing bun.