From 1c02e5e2f0aab5e2b54223bd7faad188b31c735e Mon Sep 17 00:00:00 2001 From: Soham Dasgupta Date: Tue, 14 Jul 2026 00:27:49 +0530 Subject: [PATCH] preserve tap service block in release workflow The release workflow regenerates the Homebrew formula from a heredoc template, so the service block merged in raine/homebrew-claude-code-proxy#1 was silently dropped by the 0.1.16 release (edb9b43 in the tap). Add the same service block to the template so brew services support survives releases. --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f1709a..4469f1a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -192,6 +192,16 @@ jobs: bin.install "claude-code-proxy" end + service do + state_home = ENV.fetch("XDG_STATE_HOME", "#{Dir.home}/.local/state") + + run [opt_bin/"claude-code-proxy", "serve", "--no-monitor"] + keep_alive true + environment_variables XDG_STATE_HOME: state_home + log_path "#{state_home}/claude-code-proxy/service.log" + error_log_path "#{state_home}/claude-code-proxy/service.log" + end + test do assert_match version.to_s, shell_output("\#{bin}/claude-code-proxy --version") end