2014-11-14 01:26:49 +08:00
|
|
|
cask :v1 => 'ridibooks' do
|
2014-09-17 19:42:59 +08:00
|
|
|
version :latest
|
2014-05-08 20:51:31 +08:00
|
|
|
sha256 :no_check
|
2014-06-27 08:01:40 +08:00
|
|
|
|
|
|
|
url 'http://ridibooks.com/getapp?os=mac'
|
|
|
|
homepage 'http://ridibooks.com/support/introduce_appdown'
|
2014-12-20 21:47:06 +08:00
|
|
|
license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder
|
2014-06-27 08:01:40 +08:00
|
|
|
|
2014-10-03 22:42:41 +08:00
|
|
|
container :type => :naked
|
2014-09-09 20:55:28 +08:00
|
|
|
preflight do
|
2014-11-21 22:37:55 +08:00
|
|
|
system '/bin/mv', '--', staged_path.join('getapp'), staged_path.join('ridibooks.pkg')
|
2014-03-10 06:25:56 +08:00
|
|
|
end
|
2014-09-10 23:37:06 +08:00
|
|
|
pkg 'ridibooks.pkg'
|
2014-11-22 22:12:45 +08:00
|
|
|
|
2014-03-10 06:25:56 +08:00
|
|
|
uninstall :pkgutil => 'com.ridibooks.Ridibooks'
|
|
|
|
end
|