homebrew-core/Formula/iconsur.rb

33 lines
1.3 KiB
Ruby

require "language/node"
class Iconsur < Formula
desc "macOS Big Sur Adaptive Icon Generator"
homepage "https://github.com/rikumi/iconsur"
url "https://registry.npmjs.org/iconsur/-/iconsur-1.7.0.tgz"
sha256 "d732df6bbcaf1418c6f46f9148002cbc1243814692c1c0e5c0cebfcff001c4a1"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "304d38f9248f8979b2b483280cac76690c14b61ff87f08484c0dc2a9387c21b8"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "304d38f9248f8979b2b483280cac76690c14b61ff87f08484c0dc2a9387c21b8"
sha256 cellar: :any_skip_relocation, monterey: "77884a43974a1b6a917d415b12d2b6fe476dee4215e986e7123b9d911b0a95cc"
sha256 cellar: :any_skip_relocation, big_sur: "77884a43974a1b6a917d415b12d2b6fe476dee4215e986e7123b9d911b0a95cc"
sha256 cellar: :any_skip_relocation, catalina: "77884a43974a1b6a917d415b12d2b6fe476dee4215e986e7123b9d911b0a95cc"
end
depends_on :macos
depends_on "node"
def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"]
end
test do
mkdir testpath/"Test.app"
system bin/"iconsur", "set", testpath/"Test.app", "-k", "AppleDeveloper"
system bin/"iconsur", "cache"
system bin/"iconsur", "unset", testpath/"Test.app"
end
end