-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backfill formulas from 0.1.6 to 0.2.1
- Loading branch information
Showing
14 changed files
with
645 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.DS_Store | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# homebrew-bun | ||
|
||
This is the official [Homebrew](https://brew.sh/) tap for [Bun](https://bun.sh/). You can use it to install Bun on MacOS and Linux using Homebrew. | ||
|
||
## Install | ||
|
||
To install Bun with Homebrew, aka. `brew`, run the following commands: | ||
|
||
```bash | ||
brew tap oven-sh/bun | ||
brew install bun | ||
``` | ||
|
||
If you want to install a specific release, you can include the version in the command. You can also view the list of releases [here](https://github.com/oven-sh/bun/releases). | ||
|
||
```bash | ||
brew install [email protected] | ||
``` | ||
|
||
## Upgrade | ||
|
||
To upgrade, it is recommended that you run the `brew upgrade` command. However, you can also run `bun upgrade` as well. | ||
|
||
```bash | ||
brew upgrade bun | ||
``` | ||
|
||
## Uninstall | ||
|
||
If you want to uninstall Bun, run the following commands: | ||
|
||
```bash | ||
brew uninstall bun | ||
brew untap oven-sh/bun | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
class Bun < Formula | ||
desc "Incredibly fast JavaScript runtime, bundler, transpiler and package manager - all in one." | ||
homepage "https://bun.sh/" | ||
license "MIT" | ||
version "0.2.1" | ||
|
||
livecheck do | ||
url "https://github.com/oven-sh/bun/releases/latest" | ||
regex(%r{href=.*?/tag/bun-v?(\d+(?:\.\d+)+)["' >]}i) | ||
end | ||
|
||
if OS.mac? | ||
if Hardware::CPU.arm? || Hardware::CPU.in_rosetta2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-aarch64.zip" | ||
sha256 "9f5bae71c8889ceaef7497d7c1b92af36d129a70ab0c4649cce813b59e52b567" # bun-darwin-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64.zip" | ||
sha256 "8976309239260f8089377980cf9399e99a6e352f22878b59fc9804e7a8b98b7b" # bun-darwin-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64-baseline.zip" | ||
sha256 "39f2f4aa32b147f1f2d4298133be2856d733825a763af633cb9df915980de67d" # bun-darwin-x64-baseline.zip | ||
end | ||
elsif OS.linux? | ||
if Hardware::CPU.arm? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-aarch64.zip" | ||
sha256 "39fe943d4d713911ae53177bb45822d64f9b4f9b801e83b40b207f0242df50e6" # bun-linux-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64.zip" | ||
sha256 "be1a588a59e5fbb97fdd8b514102d4db5133099211a739f0407ea47e310d8e8d" # bun-linux-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64-baseline.zip" | ||
sha256 "3708fd3547c05d433f004e4815a58145818a5fbde8c71b24c204ffbe4ee44b76" # bun-linux-x64-baseline.zip | ||
end | ||
else | ||
odie "Unsupported platform. Please submit a bug report here: https://bun.sh/issues\n#{OS.report}" | ||
end | ||
|
||
# TODO: to become an official formula we need to build from source | ||
def install | ||
bin.install "bun" | ||
ENV["BUN_INSTALL"] = "#{bin}" | ||
generate_completions_from_executable(bin/"bun", "completions") | ||
end | ||
|
||
def test | ||
assert_match "#{version}", shell_output("#{bin}/bun -v") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
class BunAT0110 < Formula | ||
desc "Incredibly fast JavaScript runtime, bundler, transpiler and package manager - all in one." | ||
homepage "https://bun.sh/" | ||
license "MIT" | ||
version "0.1.10" | ||
|
||
livecheck do | ||
url "https://github.com/oven-sh/bun/releases/latest" | ||
regex(%r{href=.*?/tag/bun-v?(\d+(?:\.\d+)+)["' >]}i) | ||
end | ||
|
||
if OS.mac? | ||
if Hardware::CPU.arm? || Hardware::CPU.in_rosetta2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-aarch64.zip" | ||
sha256 "f37a77ed4c503540dcfebbd39261b55c9c5ccc5599d8edcf502752949a4b2dbe" # bun-darwin-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64.zip" | ||
sha256 "793ec036acb4a2997aeb1f06c982670f72bb25d94d3f85cca33fef2358d3b541" # bun-darwin-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64-baseline.zip" | ||
sha256 "8dc96c8046127a32da49fc47499cb5cc71bc6bbc9dcc9e0d4eaab7fe0c6f2215" # bun-darwin-x64-baseline.zip | ||
end | ||
elsif OS.linux? | ||
if Hardware::CPU.arm? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-aarch64.zip" | ||
sha256 "cf5320cbc77b584e4b937163ed296eb2542f67c3570235d63680ee05bf568419" # bun-linux-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64.zip" | ||
sha256 "6df8176519995bc9cb20baf06c53bc5d0f94ed9d9663ccf211b5c3f42b2af476" # bun-linux-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64-baseline.zip" | ||
sha256 "704e3ab0ea6bb3f32fb2ea50679c49f7884c26290ac95c22ac8ae902933eba1a" # bun-linux-x64-baseline.zip | ||
end | ||
else | ||
odie "Unsupported platform. Please submit a bug report here: https://bun.sh/issues\n#{OS.report}" | ||
end | ||
|
||
# TODO: to become an official formula we need to build from source | ||
def install | ||
bin.install "bun" | ||
ENV["BUN_INSTALL"] = "#{bin}" | ||
generate_completions_from_executable(bin/"bun", "completions") | ||
end | ||
|
||
def test | ||
assert_match "#{version}", shell_output("#{bin}/bun -v") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
class BunAT0111 < Formula | ||
desc "Incredibly fast JavaScript runtime, bundler, transpiler and package manager - all in one." | ||
homepage "https://bun.sh/" | ||
license "MIT" | ||
version "0.1.11" | ||
|
||
livecheck do | ||
url "https://github.com/oven-sh/bun/releases/latest" | ||
regex(%r{href=.*?/tag/bun-v?(\d+(?:\.\d+)+)["' >]}i) | ||
end | ||
|
||
if OS.mac? | ||
if Hardware::CPU.arm? || Hardware::CPU.in_rosetta2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-aarch64.zip" | ||
sha256 "475ec66b80ba3d2c5f2f56f3e88063c747581665fdde2d32f2eab11b579929de" # bun-darwin-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64.zip" | ||
sha256 "095a853ef65270d4ee744db081472dc060e04f268c78df1d50d98b6ad70aa393" # bun-darwin-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64-baseline.zip" | ||
sha256 "0962520ba5b5f1f86fda7e3a403672a77c3dcfb4b5f494bb04d4b13f6ad38a8e" # bun-darwin-x64-baseline.zip | ||
end | ||
elsif OS.linux? | ||
if Hardware::CPU.arm? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-aarch64.zip" | ||
sha256 "2920b881db09649a0f8cc12cf958a056eaa5503860e2c2f4e785919406c1f9e0" # bun-linux-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64.zip" | ||
sha256 "3778463f2a7dc2f6fb8e3a5a14b25c74d211c8bbde82301ef8c895d9a312d671" # bun-linux-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64-baseline.zip" | ||
sha256 "4bfd344dfaa7b63518566a735cbe294e9a926d484ec24f251bf88266af527461" # bun-linux-x64-baseline.zip | ||
end | ||
else | ||
odie "Unsupported platform. Please submit a bug report here: https://bun.sh/issues\n#{OS.report}" | ||
end | ||
|
||
# TODO: to become an official formula we need to build from source | ||
def install | ||
bin.install "bun" | ||
ENV["BUN_INSTALL"] = "#{bin}" | ||
generate_completions_from_executable(bin/"bun", "completions") | ||
end | ||
|
||
def test | ||
assert_match "#{version}", shell_output("#{bin}/bun -v") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
class BunAT0112 < Formula | ||
desc "Incredibly fast JavaScript runtime, bundler, transpiler and package manager - all in one." | ||
homepage "https://bun.sh/" | ||
license "MIT" | ||
version "0.1.12" | ||
|
||
livecheck do | ||
url "https://github.com/oven-sh/bun/releases/latest" | ||
regex(%r{href=.*?/tag/bun-v?(\d+(?:\.\d+)+)["' >]}i) | ||
end | ||
|
||
if OS.mac? | ||
if Hardware::CPU.arm? || Hardware::CPU.in_rosetta2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-aarch64.zip" | ||
sha256 "420ff96bbd079dde2579446405aa9097002c09e6094f39420a62cb5cb1d9c321" # bun-darwin-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64.zip" | ||
sha256 "326e21d9fb4a2af472cd1ebd1da5a14d626ca839bc7e499a6c1ca04940317e5a" # bun-darwin-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64-baseline.zip" | ||
sha256 "5cbbab146a7eaf2786705d17501c7fb62c1699c01e2cf853aff4f1609f4d2c5f" # bun-darwin-x64-baseline.zip | ||
end | ||
elsif OS.linux? | ||
if Hardware::CPU.arm? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-aarch64.zip" | ||
sha256 "efe2b03069c9413a66bc984693da2058e86a5168a0facd6b7b2920398dd2ac76" # bun-linux-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64.zip" | ||
sha256 "75c1b8521fd3bd846dc2b7179a9adf78752eef8c0bb969977da91035a565d99d" # bun-linux-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64-baseline.zip" | ||
sha256 "532dc933752b12aba30c430b4c6427e87f34d91378fefb86741f2b37055025b9" # bun-linux-x64-baseline.zip | ||
end | ||
else | ||
odie "Unsupported platform. Please submit a bug report here: https://bun.sh/issues\n#{OS.report}" | ||
end | ||
|
||
# TODO: to become an official formula we need to build from source | ||
def install | ||
bin.install "bun" | ||
ENV["BUN_INSTALL"] = "#{bin}" | ||
generate_completions_from_executable(bin/"bun", "completions") | ||
end | ||
|
||
def test | ||
assert_match "#{version}", shell_output("#{bin}/bun -v") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
class BunAT0113 < Formula | ||
desc "Incredibly fast JavaScript runtime, bundler, transpiler and package manager - all in one." | ||
homepage "https://bun.sh/" | ||
license "MIT" | ||
version "0.1.13" | ||
|
||
livecheck do | ||
url "https://github.com/oven-sh/bun/releases/latest" | ||
regex(%r{href=.*?/tag/bun-v?(\d+(?:\.\d+)+)["' >]}i) | ||
end | ||
|
||
if OS.mac? | ||
if Hardware::CPU.arm? || Hardware::CPU.in_rosetta2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-aarch64.zip" | ||
sha256 "4584d171cf3171c466c6e28e5f05f76c15894972c8dbf5df1f8ffb65d71405d1" # bun-darwin-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64.zip" | ||
sha256 "48665c4f6b95cba7a0afdf45cf26b291458bb9906a0ecbdb08cfe5b20cbffe0d" # bun-darwin-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64-baseline.zip" | ||
sha256 "163f78d0b14f0561a818904edd72e03d1bec24145e746e91508999bfb5b37241" # bun-darwin-x64-baseline.zip | ||
end | ||
elsif OS.linux? | ||
if Hardware::CPU.arm? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-aarch64.zip" | ||
sha256 "2e2c4baf34ac81b5f27e914a8a4b0ce33352e620d4ded5ceaebedf3fcc899273" # bun-linux-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64.zip" | ||
sha256 "b2c66d262f821159fb3233cca85930bf5967c04edaeedb649a2ba84f463ac1aa" # bun-linux-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64-baseline.zip" | ||
sha256 "57a2f846045fee278475f12d335dbab14f85adfad1659e265f466488304096fc" # bun-linux-x64-baseline.zip | ||
end | ||
else | ||
odie "Unsupported platform. Please submit a bug report here: https://bun.sh/issues\n#{OS.report}" | ||
end | ||
|
||
# TODO: to become an official formula we need to build from source | ||
def install | ||
bin.install "bun" | ||
ENV["BUN_INSTALL"] = "#{bin}" | ||
generate_completions_from_executable(bin/"bun", "completions") | ||
end | ||
|
||
def test | ||
assert_match "#{version}", shell_output("#{bin}/bun -v") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
class BunAT016 < Formula | ||
desc "Incredibly fast JavaScript runtime, bundler, transpiler and package manager - all in one." | ||
homepage "https://bun.sh/" | ||
license "MIT" | ||
version "0.1.6" | ||
|
||
livecheck do | ||
url "https://github.com/oven-sh/bun/releases/latest" | ||
regex(%r{href=.*?/tag/bun-v?(\d+(?:\.\d+)+)["' >]}i) | ||
end | ||
|
||
if OS.mac? | ||
if Hardware::CPU.arm? || Hardware::CPU.in_rosetta2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-aarch64.zip" | ||
sha256 "c82547d96125bf93ae76dafe203cae5f7cd50d041bfb1cf972f9f0232a0d1cc1" # bun-darwin-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64.zip" | ||
sha256 "51fb5f29b5f00207ede11c892ccf5bb3ab437b77e7420e1c18b7fc91e02e2494" # bun-darwin-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64-baseline.zip" | ||
sha256 "c9116fad0a9b55b1665da2ebe6b1ec736d2c24b6dda9168aba6c3b3bfa4692d6" # bun-darwin-x64-baseline.zip | ||
end | ||
elsif OS.linux? | ||
if Hardware::CPU.arm? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-aarch64.zip" | ||
sha256 "3430f3ff456ee86ddb607a46ee937c9c1a02b8e4d2546de52b4493878f66afb8" # bun-linux-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64.zip" | ||
sha256 "89fe00713a4e0e9f77d8842c5e07f771bd743271746fcb755c5d98cb5c00456e" # bun-linux-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64-baseline.zip" | ||
sha256 "0a41f26b623e303371fefc8fb9eaea4d88f04e2df2a47fe168f38b9fbb646bb1" # bun-linux-x64-baseline.zip | ||
end | ||
else | ||
odie "Unsupported platform. Please submit a bug report here: https://bun.sh/issues\n#{OS.report}" | ||
end | ||
|
||
# TODO: to become an official formula we need to build from source | ||
def install | ||
bin.install "bun" | ||
ENV["BUN_INSTALL"] = "#{bin}" | ||
generate_completions_from_executable(bin/"bun", "completions") | ||
end | ||
|
||
def test | ||
assert_match "#{version}", shell_output("#{bin}/bun -v") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
class BunAT017 < Formula | ||
desc "Incredibly fast JavaScript runtime, bundler, transpiler and package manager - all in one." | ||
homepage "https://bun.sh/" | ||
license "MIT" | ||
version "0.1.7" | ||
|
||
livecheck do | ||
url "https://github.com/oven-sh/bun/releases/latest" | ||
regex(%r{href=.*?/tag/bun-v?(\d+(?:\.\d+)+)["' >]}i) | ||
end | ||
|
||
if OS.mac? | ||
if Hardware::CPU.arm? || Hardware::CPU.in_rosetta2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-aarch64.zip" | ||
sha256 "19ec18cae8befac7f093eaf8e491ec2769c55307fadff97046b4f0aad32cd81b" # bun-darwin-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64.zip" | ||
sha256 "3455245ea203572db19c1b372011e8c5ec1fb9bbceda54f9647751cbc47449f1" # bun-darwin-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-darwin-x64-baseline.zip" | ||
sha256 "a527aea209f1f0824fd6a75b84922cfd8a5c17004685c6a945a597be31880c4f" # bun-darwin-x64-baseline.zip | ||
end | ||
elsif OS.linux? | ||
if Hardware::CPU.arm? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-aarch64.zip" | ||
sha256 "ffbab4e070031d084217b1fc61bd3dee44ca531dcf47959078bd763a7664769f" # bun-linux-aarch64.zip | ||
elsif Hardware::CPU.avx2? | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64.zip" | ||
sha256 "ecc8959d65c2f920f13ba10b314d508d82a014dc0f2ebafc70e84d29fdc1de03" # bun-linux-x64.zip | ||
else | ||
url "https://github.com/oven-sh/bun/releases/download/bun-v#{version}/bun-linux-x64-baseline.zip" | ||
sha256 "1395b628f41722e96ba05ddead09284dce88227326443ac71505357992a154b8" # bun-linux-x64-baseline.zip | ||
end | ||
else | ||
odie "Unsupported platform. Please submit a bug report here: https://bun.sh/issues\n#{OS.report}" | ||
end | ||
|
||
# TODO: to become an official formula we need to build from source | ||
def install | ||
bin.install "bun" | ||
ENV["BUN_INSTALL"] = "#{bin}" | ||
generate_completions_from_executable(bin/"bun", "completions") | ||
end | ||
|
||
def test | ||
assert_match "#{version}", shell_output("#{bin}/bun -v") | ||
end | ||
end |
Oops, something went wrong.