Skip to content

Commit 046f65b

Browse files
ashu17706claude
andcommitted
fix: update workflow to generate correct formula class name
Critical fixes: - Change class name from 'Warp' to 'WarpCli' to match filename - Add cask dependency (cloudflare-warp) so daemon is auto-installed - Add post_install hook to remove GUI app - Add version attribute - Improve caveats message with checkmarks This fixes the Homebrew error: 'Expected to find class WarpCli, but only found: Warp' Now users can successfully run: brew install warp-cli Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent da7d152 commit 046f65b

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/publish-homebrew.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,40 @@ jobs:
4848
- name: Update formula
4949
run: |
5050
cat > homebrew-tools/Formula/warp-cli.rb << 'EOF'
51-
class Warp < Formula
51+
class WarpCli < Formula
5252
desc "Beautiful CLI for Cloudflare WARP - Control your VPN from the terminal"
5353
homepage "https://github.com/zero8dotdev/warp-cli"
5454
url "${{ env.TARBALL_URL }}"
5555
sha256 "${{ env.SHA256 }}"
56+
version "0.1.0"
5657
license "MIT"
5758
head "https://github.com/zero8dotdev/warp-cli.git", branch: "main"
5859
5960
depends_on "rust" => :build
61+
depends_on "cloudflare-warp" => :cask
6062
6163
def install
6264
system "cargo", "build", "--release"
6365
bin.install "target/release/warp"
6466
end
6567
68+
def post_install
69+
gui_app = "/Applications/Cloudflare WARP.app"
70+
if File.exist?(gui_app)
71+
puts "Removing Cloudflare WARP GUI app (daemon will continue running)..."
72+
system "rm", "-rf", gui_app
73+
end
74+
end
75+
6676
def caveats
6777
<<~EOS
68-
Cloudflare WARP app must be installed first:
69-
brew install --cask cloudflare-warp
78+
WARP daemon installed and configured
79+
✅ GUI app removed (not needed for CLI)
7080
71-
Or download from: https://apps.apple.com/app/cloudflare-warp/id1423210915
81+
Your WARP daemon is running. Try it:
82+
warp up # Connect to WARP
83+
warp status # Check connection
84+
warp --help # See all commands
7285
EOS
7386
end
7487

0 commit comments

Comments
 (0)