Skip to content

Commit d3705c8

Browse files
authored
Merge pull request Homebrew#221707 from Homebrew/infat
infat 2.3.2 (new formula)
2 parents cbe17ab + ab79e1d commit d3705c8

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,6 +1590,7 @@ imposm3
15901590
inchi
15911591
include-what-you-use
15921592
inetutils
1593+
infat
15931594
infisical
15941595
influxdb
15951596
influxdb-cli

Formula/i/infat.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
class Infat < Formula
2+
desc "Tool to set default openers for file formats and url schemes on MacOS"
3+
homepage "https://github.com/philocalyst/infat"
4+
url "https://github.com/philocalyst/infat/archive/refs/tags/v2.3.2.tar.gz"
5+
sha256 "569c87acea2ac377db0c2e95ee3743b7237e6a8f8bcc4724283c096eeab30a11"
6+
license "MIT"
7+
8+
bottle do
9+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "6aba9c37e90515789e4ecc40f2149efd10aa97fa0a88f59c61218b9a5eaa42a2"
10+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "7ad32e4f2910cf4f320eb9f0faa0fc1a5a5a8f4a3c21f174dc41c01ced4a30eb"
11+
sha256 cellar: :any_skip_relocation, arm64_ventura: "0b171824de246eb166e0b38c27549f3c1572182c8a984165512c759d228b20c3"
12+
sha256 cellar: :any_skip_relocation, sonoma: "316ebcf36a3e11ffd1f51fd8ac03f648815e7aef040ad62025c7219d529d1c78"
13+
sha256 cellar: :any_skip_relocation, ventura: "bcb84631c826273017f5209af75461d43382c567143334ccb3ac52166e83301b"
14+
end
15+
16+
depends_on :macos
17+
uses_from_macos "swift" => :build
18+
19+
def install
20+
system "swift", "build", "--disable-sandbox", "-c", "release", "--static-swift-stdlib"
21+
bin.install ".build/release/infat"
22+
end
23+
24+
test do
25+
output = shell_output("#{bin}/infat set TextEdit --ext txt")
26+
assert_match "Successfully bound TextEdit to txt", output
27+
end
28+
end

0 commit comments

Comments
 (0)