homebrew-cask/Casks/scratch.rb

25 lines
990 B
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'scratch' do
2017-02-08 15:33:28 +08:00
version '2.0,454'
sha256 '5da6ce46e860dac4be11093eac99f01834e21d9b385ba676c5026ad104041cbb'
2014-06-29 22:11:19 +08:00
2017-01-25 23:58:00 +08:00
url "https://scratch.mit.edu/scratchr2/static/sa/Scratch-#{version.after_comma}.dmg"
appcast 'https://scratch.mit.edu/scratchr2/static/sa/version.xml',
2017-02-08 15:33:28 +08:00
checkpoint: '8226770c3ad032b4ecd8e93815673be427024937cbea9f13cd1c532fc47830a4'
2015-04-26 23:44:26 +08:00
name 'Scratch'
2015-05-02 15:38:20 +08:00
homepage 'https://scratch.mit.edu/scratch2download/'
depends_on cask: 'adobe-air'
2014-06-29 22:11:19 +08:00
installer script: {
executable: "Install Scratch #{version.major}.app/Contents/MacOS/Install Scratch #{version.major}",
args: %w[-silent],
sudo: true,
}
2015-05-02 15:38:20 +08:00
uninstall script: {
executable: Hbc::Container::Air::INSTALLER_PATHNAME,
2017-01-25 23:58:00 +08:00
args: ['-uninstall', '-silent', "/Applications/Scratch\ #{version.major}.app"],
2016-06-06 04:41:20 +08:00
sudo: true,
}
2014-06-29 22:11:19 +08:00
end