Skip to content

Commit b40ab29

Browse files
committed
infat 2.3.2 (new formula)
1 parent a87c851 commit b40ab29

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Formula/i/infat.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
depends_on :macos
9+
uses_from_macos "swift" => :build
10+
11+
def install
12+
system "swift", "build", "--disable-sandbox", "-c", "release", "--static-swift-stdlib"
13+
bin.install ".build/release/infat"
14+
end
15+
16+
test do
17+
output = shell_output("#{bin}/infat set TextEdit --ext txt")
18+
assert_match "Successfully bound TextEdit to txt", output
19+
end
20+
end

0 commit comments

Comments
 (0)