homebrew-cask/Casks/decitime.rb

19 lines
800 B
Ruby
Raw Normal View History

2014-01-27 13:54:13 +08:00
class Decitime < Cask
version '1.0.1'
sha256 '3fcd9d6af7cf4710abd42df4db418432ca1758ba8db7affecb1a466d1996f877'
url 'http://download.filewell.com/DeciTime101.dmg.zip'
homepage 'http://www.tinbert.com/DeciTimeMac/'
2014-10-01 23:32:44 +08:00
license :oss
2014-10-09 23:40:46 +08:00
container :nested => 'DeciTime101.dmg'
2014-09-16 00:05:27 +08:00
app 'DeciTime.app'
2014-01-27 13:54:13 +08:00
# fix wonky DMG by mounting it once read-write per discussion at
# https://github.com/caskroom/homebrew-cask/pull/2654
2014-09-09 20:55:26 +08:00
preflight do
2014-10-09 23:40:46 +08:00
# todo the nested_container hack must be revised when container :nested stops being an alias around 0.50.0
system %Q{/usr/bin/hdiutil eject "$(/usr/bin/hdiutil mount -readwrite -noidme -nobrowse -mountrandom /tmp #{destination_path.join(artifacts[:nested_container].first)} | /usr/bin/cut -f3 -- - | /usr/bin/grep -- '.' -)" >/dev/null 2>&1}
2014-01-27 13:54:13 +08:00
end
end