chore(homebrew): drop local formula copies

This commit is contained in:
James Peter
2025-11-27 11:35:15 +10:00
parent 9c909f8395
commit 6eb6a280b8
4 changed files with 4 additions and 80 deletions
+4
View File
@@ -64,6 +64,10 @@ code-rs/bin/
/npm-binaries/
/.github/auto/
# Homebrew formula staging (generated)
Formula/Code.rb
homebrew-tap/Formula/Code.rb
# Local GitHub Actions runners and caches
.act/
actions-runner/
-31
View File
@@ -1,31 +0,0 @@
class Code < Formula
desc "Terminal coding agent"
homepage "https://github.com/just-every/code"
version "0.4.7"
livecheck do
url :homepage
strategy :github_latest
end
on_macos do
if Hardware::CPU.arm?
url "https://github.com/just-every/code/releases/download/v0.4.7/code-aarch64-apple-darwin.tar.gz"
sha256 "76ac9be154c86193bd2f66ddc7bc82168f310574a3ebbdc279548d91d232e2a6"
else
url "https://github.com/just-every/code/releases/download/v0.4.7/code-x86_64-apple-darwin.tar.gz"
sha256 "5968dc7bf681ccb7fb9a825cfbfb33870e2c249f2ca326e8a70c7f4cedfd63e7"
end
end
def install
bin.install Dir["code-*"].first => "code"
# Provide a compatibility shim
(bin/"coder").write <<~EOS
#!/bin/bash
exec "#{bin}/code" "$@"
EOS
end
test do
system "#{bin}/code", "--help"
end
end
-31
View File
@@ -1,31 +0,0 @@
class Code < Formula
desc "Terminal coding agent"
homepage "https://github.com/just-every/code"
version "0.4.7"
livecheck do
url :homepage
strategy :github_latest
end
on_macos do
if Hardware::CPU.arm?
url "https://github.com/just-every/code/releases/download/v0.4.7/code-aarch64-apple-darwin.tar.gz"
sha256 "76ac9be154c86193bd2f66ddc7bc82168f310574a3ebbdc279548d91d232e2a6"
else
url "https://github.com/just-every/code/releases/download/v0.4.7/code-x86_64-apple-darwin.tar.gz"
sha256 "5968dc7bf681ccb7fb9a825cfbfb33870e2c249f2ca326e8a70c7f4cedfd63e7"
end
end
def install
bin.install Dir["code-*"].first => "code"
# Provide a compatibility shim
(bin/"coder").write <<~EOS
#!/bin/bash
exec "#{bin}/code" "$@"
EOS
end
test do
system "#{bin}/code", "--help"
end
end
-18
View File
@@ -1,18 +0,0 @@
# just-every/homebrew-tap
Unofficial tap for Code (terminal coding agent).
## Usage
```bash
brew tap just-every/tap
brew install code
```
## Updating
- Regenerate the formula in the main repo:
```bash
scripts/generate-homebrew-formula.sh
```
- Copy `Formula/Code.rb` into this tap at `Formula/Code.rb` and push a commit.