26 lines
831 B
Ruby
26 lines
831 B
Ruby
require "language/node"
|
|
|
|
class Nativefier < Formula
|
|
desc "Wrap web apps natively"
|
|
homepage "https://github.com/jiahaog/nativefier"
|
|
url "https://registry.npmjs.org/nativefier/-/nativefier-7.2.0.tgz"
|
|
sha256 "f9090f8fcc941651133ed9bcc50cd8c42e4a02c9810995cde14309978b746166"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "5fd0fa50a466f1cd60d786eb1ef15f6c18154ba34ed5d4f954b9dead28a21fe6" => :sierra
|
|
sha256 "cfde4bd4901ac331d01f76416c178c8f6858992b61329739556497eba1eb5057" => :el_capitan
|
|
sha256 "bf1f29f7cd9110a046a2e8f1d30d28a2fbc5b2b5c8a7dff063e3942058260e66" => :yosemite
|
|
end
|
|
|
|
depends_on "node"
|
|
|
|
def install
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
end
|
|
|
|
test do
|
|
system bin/"nativefier", "--version"
|
|
end
|
|
end
|