2018-10-14 20:32:01 +00:00
|
|
|
class CreateDmg < Formula
|
|
|
|
desc "Shell script to build fancy DMGs"
|
|
|
|
homepage "https://github.com/andreyvit/create-dmg"
|
2018-12-13 22:15:44 +00:00
|
|
|
url "https://github.com/andreyvit/create-dmg/archive/v1.0.0.5.tar.gz"
|
|
|
|
sha256 "de76c8a7a1f4705720d61d39de7c87b7bc2acc7c35f6ec8d6d2dbdafcedc21b6"
|
2018-10-14 20:32:01 +00:00
|
|
|
|
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
|
|
|
|
|
2018-10-14 20:32:01 +00:00
|
|
|
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
|