homebrew-cask/Casks/scratch.rb

21 lines
820 B
Ruby
Raw Normal View History

2014-11-14 01:26:51 +08:00
cask :v1 => 'scratch' do
2015-07-29 08:45:34 +08:00
version '437'
sha256 '3615721aaffc5f94512887afd5a470488bd2d33c952137c1a89a3fa1830b91a5'
2014-06-29 22:11:19 +08:00
2015-06-30 07:17:40 +08:00
url "https://scratch.mit.edu/scratchr2/static/sa/Scratch-#{version}.dmg"
2015-04-26 23:44:26 +08:00
name 'Scratch'
2015-05-02 15:38:20 +08:00
homepage 'https://scratch.mit.edu/scratch2download/'
license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder
2014-06-29 22:11:19 +08:00
2015-05-02 15:38:20 +08:00
installer :script => 'Install Scratch 2.app/Contents/MacOS/Install Scratch 2',
:args => %w[-silent],
:sudo => true
uninstall :script => {
:executable => '/Applications/Utilities/Adobe AIR Application Installer.app/Contents/MacOS/Adobe AIR Application Installer',
:args => %w[-uninstall -silent /Applications/Scratch\ 2.app]
}
depends_on :cask => 'adobe-air'
2014-06-29 22:11:19 +08:00
end