fix(release): preserve Homebrew formula version (#2488)

This commit is contained in:
José Almeida
2026-08-10 15:06:16 +01:00
committed by GitHub
parent 0678d696c8
commit 7968691dc1
5 changed files with 21 additions and 11 deletions
+2
View File
@@ -3,6 +3,8 @@
class Kandev < Formula
desc "Manage tasks, orchestrate agents, review changes, and ship value"
homepage "https://github.com/kdlbs/kandev"
# Conditional asset names end in x64/arm64; without this, Homebrew uses version 64.
version "__VERSION__"
license "AGPL-3.0-only"
on_macos do
+1
View File
@@ -118,6 +118,7 @@ mkdir -p "$(dirname "$FORMULA_PATH")"
GITHUB_BASE="https://github.com/kdlbs/kandev/releases/download/${TAG}"
sed \
-e "s|__VERSION__|$VERSION|g" \
-e "s|__GITHUB_BASE__|$GITHUB_BASE|g" \
-e "s|__SHA_MACOS_ARM64__|$SHA_MACOS_ARM64|g" \
-e "s|__SHA_MACOS_X64__|$SHA_MACOS_X64|g" \