2019-12-09 15:33:34 +00:00
|
|
|
class Fileicon < Formula
|
|
|
|
desc "macOS CLI for managing custom icons for files and folders"
|
|
|
|
homepage "https://github.com/mklement0/fileicon"
|
|
|
|
url "https://github.com/mklement0/fileicon/archive/v0.2.2.tar.gz"
|
|
|
|
sha256 "1725a6a693b3586617b0fc669719a15c05eb7f8e535daee511a315d9b6fc0eb3"
|
|
|
|
|
2019-12-23 03:00:55 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "6b3cfdf0e341c2a39ff84e617279e95f38d315130ed2820d867251ef4c8ba9da" => :catalina
|
|
|
|
sha256 "6b3cfdf0e341c2a39ff84e617279e95f38d315130ed2820d867251ef4c8ba9da" => :mojave
|
|
|
|
sha256 "6b3cfdf0e341c2a39ff84e617279e95f38d315130ed2820d867251ef4c8ba9da" => :high_sierra
|
|
|
|
end
|
|
|
|
|
2019-12-09 15:33:34 +00:00
|
|
|
def install
|
|
|
|
bin.install "bin/fileicon"
|
|
|
|
man1.install "man/fileicon.1"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
icon = test_fixtures "test.png"
|
|
|
|
system bin/"fileicon", "set", testpath, icon
|
|
|
|
assert_predicate testpath/"Icon\r", :exist?
|
|
|
|
stdout = shell_output "#{bin}/fileicon test #{testpath}"
|
|
|
|
assert_include stdout, "HAS custom icon: '#{testpath}'"
|
|
|
|
end
|
|
|
|
end
|