Skip to content

Commit 0c170bf

Browse files
authored
Update brew config for cask (#117)
1 parent 865f125 commit 0c170bf

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

.github/workflows/release-binary.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ on:
44
release:
55
types: [published]
66
workflow_dispatch:
7+
inputs:
8+
skip_publish:
9+
description: "Skip binary publish"
10+
required: false
11+
default: "false"
12+
skip_announce:
13+
description: "Skip announce"
14+
required: false
15+
default: "false"
716

817
permissions:
918
contents: write
@@ -27,6 +36,10 @@ jobs:
2736
with:
2837
distribution: goreleaser
2938
version: latest
30-
args: release --clean
39+
args: >
40+
release --clean
41+
${{ github.event.inputs.skip_publish == 'true' && ' --skip-publish' || '' }}
42+
${{ github.event.inputs.skip_announce == 'true' && ' --skip-announce' || '' }}
3143
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}

.goreleaser.yaml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,31 @@ archives:
4242
- goos: windows
4343
formats: [zip]
4444

45-
brews:
45+
homebrew_casks:
4646
- name: mcpd
4747
repository:
4848
owner: mozilla-ai
4949
name: homebrew-mcpd
50+
branch: main
51+
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
52+
license: Apache-2.0
5053
homepage: https://github.com/mozilla-ai/mcpd
5154
description: >
5255
A tool to declaratively manage Model Context Protocol (MCP) servers,
5356
providing a consistent interface to define and run tools across environments,
5457
from local development to containerized cloud deployments.
55-
license: Apache-2.0
56-
directory: Formula
58+
directory: Casks
59+
conflicts:
60+
- formula: mcpd
5761
# Only build for macOS and Linux (Homebrew standard)
5862
ids:
5963
- default
60-
# Test installation
61-
test: |
62-
system "#{bin}/mcpd --version"
63-
# Install shell completions
64-
extra_install: |
65-
bash_completion.install Utils.safe_popen_read("#{bin}/mcpd", "completion", "bash")
66-
zsh_completion.install Utils.safe_popen_read("#{bin}/mcpd", "completion", "zsh")
64+
hooks:
65+
post:
66+
install: |
67+
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
68+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/mcpd"]
69+
end
6770
6871
changelog:
6972
disable: true

0 commit comments

Comments
 (0)