bun icon indicating copy to clipboard operation
bun copied to clipboard

Support winget to download Bun

Open ocweai opened this issue 1 year ago • 12 comments

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 ... 支持自动设置全平台的命令行全局变量

ocweai avatar Jan 12 '24 06:01 ocweai

homebrew is already supported, see https://github.com/oven-sh/homebrew-bun

staabm avatar Jan 12 '24 10:01 staabm

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

ocweai avatar Jan 12 '24 17:01 ocweai

I would like to see this happen to. Since winget is getting more and more popular. And I really like it.

YpsilonTM avatar Mar 30 '24 08:03 YpsilonTM

  • 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 avatar Apr 01 '24 17:04 sitiom

@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).

denelon avatar Apr 01 '24 18:04 denelon

Yes, of course 🙂 (Can't edit the blog post though):

  • https://github.com/oven-sh/bun/pull/9806

sitiom avatar Apr 02 '24 01:04 sitiom

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

CoolPlayLin avatar Apr 06 '24 05:04 CoolPlayLin

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 recommend winget's usage for installing bun.

sitiom avatar Apr 06 '24 05:04 sitiom