HFrost0 / bilix

⚡️Lightning-fast async download tool for bilibili and more
Apache License 2.0
1.64k stars 168 forks source link

install bilix的方式能否增加homebrew? #19

Closed ghost closed 1 year ago

ghost commented 2 years ago

install bilix的方式能否增加homebrew? homebrew更新比较方便,一条命令就把所有库和包都更新到最新,希望大佬能考虑下,谢谢~ lux和you-get都能用Homebrew安装,方便更新版本,希望bilix也能加入brew

HFrost0 commented 2 years ago

未来有时间会学习一下如何提供brew的安装😂

ghost commented 2 years ago

❯ brew create --help Warning: create is a developer command, so Homebrew's developer mode has been automatically turned on. To turn developer mode off, run brew developer off

Usage: brew create [options] URL

Generate a formula or, with --cask, a cask for the downloadable file at URL and open it in the editor. Homebrew will attempt to automatically derive the formula name and version, but if it fails, you'll have to make your own template. The wget formula serves as a simple example. For the complete API, see: https://rubydoc.brew.sh/Formula

  --autotools                  Create a basic template for an
                               Autotools-style build.
  --cask                       Create a basic template for a cask.
  --cmake                      Create a basic template for a CMake-style
                               build.
  --crystal                    Create a basic template for a Crystal build.
  --go                         Create a basic template for a Go build.
  --meson                      Create a basic template for a Meson-style
                               build.
  --node                       Create a basic template for a Node build.
  --perl                       Create a basic template for a Perl build.
  --python                     Create a basic template for a Python build.
  --ruby                       Create a basic template for a Ruby build.
  --rust                       Create a basic template for a Rust build.
  --no-fetch                   Homebrew will not download URL to the cache
                               and will thus not add its SHA-256 to the
                               formula for you, nor will it check the GitHub
                               API for GitHub projects (to fill out its
                               description and homepage).
  --HEAD                       Indicate that URL points to the package's
                               repository rather than a file.
  --set-name                   Explicitly set the name of the new formula
                               or cask.
  --set-version                Explicitly set the version of the new
                               formula or cask.
  --set-license                Explicitly set the license of the new
                               formula.
  --tap                        Generate the new formula within the given
                               tap, specified as user/repo.

-f, --force Ignore errors for disallowed formula names and names that shadow aliases. -d, --debug Display any debugging information. -q, --quiet Make some output more quiet. -v, --verbose Make some output more verbose. -h, --help Show this message.

ghost commented 2 years ago

安装官方文档的说法,应该是自动就可以生成了,作者有空不妨试试,我是业余的,没正经学过码代码 https://docs.brew.sh/Formula-Cookbook

linbuxiao commented 1 year ago

https://github.com/Homebrew/homebrew-core/pull/135273 已提交最新 release

linbuxiao commented 1 year ago

@HFrost0 在 homebrew 的 PR 中被提到需要一些测试,类似于 assert_equal("bilix -v", "Version 0.18.3")之类的代码,但需要和功能相关。

但我看了一下,bilix 目前的下载功能都不太适合做稳定的测试(受限于网络因素)。关于这个测试有什么建议吗?