mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
chore(homebrew): drop local formula copies
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user