homebrew-core/Formula/create-dmg.rb

26 lines
960 B
Ruby
Raw Normal View History

class CreateDmg < Formula
desc "Shell script to build fancy DMGs"
homepage "https://github.com/andreyvit/create-dmg"
url "https://github.com/andreyvit/create-dmg/archive/v1.0.0.5.tar.gz"
sha256 "de76c8a7a1f4705720d61d39de7c87b7bc2acc7c35f6ec8d6d2dbdafcedc21b6"
2018-10-20 06:36:22 +00:00
bottle do
cellar :any_skip_relocation
2018-12-13 22:22:11 +00:00
sha256 "f79816fe786969d0c2bbf6c025d1616b04add290a20def2492f73295b36bc76c" => :mojave
sha256 "d99f697bf1d22dba54a87890b30f383bf4aec7ca5b54f180646041f9d046c243" => :high_sierra
sha256 "d99f697bf1d22dba54a87890b30f383bf4aec7ca5b54f180646041f9d046c243" => :sierra
2018-10-20 06:36:22 +00:00
end
def install
system "support/brew-me.sh"
bin.install "create-dmg"
end
test do
File.write(testpath/"Brew-Eula.txt", "Eula")
(testpath/"Test-Source").mkpath
(testpath/"Test-Source/Brew.app").mkpath
system "#{bin}/create-dmg", "--sandbox-safe", "--eula", testpath/"Brew-Eula.txt", testpath/"Brew-Test.dmg", testpath/"Test-Source"
end
end