⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
build(cli): generate the Homebrew formula from a release
Andrej7d60502a9a22
diff --git a/packages/cli/scripts/homebrew-formula.sh b/packages/cli/scripts/homebrew-formula.shnew file mode 100755index 000000000..e70ab712b--- /dev/null+++ b/packages/cli/scripts/homebrew-formula.sh@@ -0,0 +1,66 @@+#!/bin/sh+set -eu++if [ "$#" -ne 2 ]; then+ echo "usage: $0 <version> <SHA256SUMS file>" >&2+ exit 1+fi++version=$1+sums=$2+base="https://github.com/usekaneo/kaneo/releases/download/cli-v$version"++sha() {+ value=$(awk -v name="$1" '$2 == name || $2 == "*" name { print tolower($1); exit }' "$sums")+ case $value in+ "" | *[!0-9a-f]*)+ echo "No valid checksum for $1 in $sums" >&2+ exit 1+ ;;+ esac+ printf '%s' "$value"+}++darwin_arm64=$(sha kaneo-darwin-arm64)+darwin_x64=$(sha kaneo-darwin-x64)+linux_arm64=$(sha kaneo-linux-arm64)+linux_x64=$(sha kaneo-linux-x64)++cat <<EOF+class Kaneo < Formula+ desc "Official command-line client for Kaneo, the open source project manager"+ homepage "https://kaneo.app/docs/cli"+ version "$version"+ license "MIT"++ on_macos do+ on_arm do+ url "$base/kaneo-darwin-arm64"+ sha256 "$darwin_arm64"+ end+ on_intel do+ url "$base/kaneo-darwin-x64"+ sha256 "$darwin_x64"+ end+ end++ on_linux do+ on_arm do+ url "$base/kaneo-linux-arm64"+ sha256 "$linux_arm64"+ end+ on_intel do+ url "$base/kaneo-linux-x64"+ sha256 "$linux_x64"+ end+ end++ def install+ bin.install Dir["kaneo-*"].first => "kaneo"+ end++ test do+ assert_match "\\"version\\":\\"#{version}\\"", shell_output("#{bin}/kaneo --version --json")+ end+end+EOF