Skip to content

Commit 026f7f8

Browse files
committed
fix(vigil): install the Touch ID helper next to the binary (biometric was silently missing in brew installs)
1 parent 12fdfb9 commit 026f7f8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Formula/vigil.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ def install
2929
# staging (it descends into a single root dir), so the binary stages as
3030
# ./vigil — NOT ./bin/vigil, so installing the "bin/vigil" path ENOENTs.
3131
bin.install "vigil"
32+
# darwin tarballs ship the Touch ID helper as a SIBLING of vigil, and the
33+
# runtime resolves it via dirname(process.execPath) — installing only
34+
# "vigil" silently ships brew installs WITHOUT biometric unlock. Linux
35+
# tarballs have no helper, hence the existence guard.
36+
bin.install "vigil-touchid" if File.exist?("vigil-touchid")
3237
end
3338

3439
test do

0 commit comments

Comments
 (0)