Skip to content

Commit 09f2b50

Browse files
Fix Homebrew formula: handle zip top-level directory stripping
Homebrew auto-strips the single top-level directory from zip archives, so the buildpath is already inside attn.app/. Reconstruct the .app bundle by installing buildpath contents into prefix/attn.app/. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8a505f1 commit 09f2b50

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

homebrew/attn.rb.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class Attn < Formula
2020

2121
def install
2222
if OS.mac?
23-
prefix.install "attn.app"
23+
# Homebrew strips the top-level attn.app/ dir from the zip,
24+
# so buildpath contains Contents/ directly. Reconstruct the bundle.
25+
(prefix/"attn.app").install Dir["*"]
2426
bin.install_symlink prefix/"attn.app/Contents/MacOS/attn"
2527
else
2628
downloaded = Dir["attn-v*"].first

0 commit comments

Comments
 (0)