homebrew-cask/Casks/coteditor.rb

34 lines
1.7 KiB
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'coteditor' do
2016-08-08 03:12:48 +08:00
if MacOS.version <= :snow_leopard
2015-07-24 03:47:18 +08:00
version '1.3.1'
sha256 '5c871bd9de30fc3c76fc66acb4ea258d4d3762ae341181d65a7ef1f8de4751c5'
2016-02-12 07:07:40 +08:00
# github.com/coteditor/CotEditor was verified as official when first introduced to the cask
2015-07-24 03:47:18 +08:00
url "https://github.com/coteditor/CotEditor/releases/download/#{version}/CotEditor_#{version}_For10.4.dmg"
2016-08-08 03:12:48 +08:00
elsif MacOS.version <= :lion
2015-07-24 03:47:18 +08:00
version '1.5.4'
sha256 '444133083698c7c94c2b029644f39a0e36982ae34c24745789fa890626188347'
2016-02-12 07:07:40 +08:00
# github.com/coteditor/CotEditor was verified as official when first introduced to the cask
2015-07-24 03:47:18 +08:00
url "https://github.com/coteditor/CotEditor/releases/download/#{version}/CotEditor_#{version}.dmg"
2016-10-04 16:52:53 +08:00
elsif MacOS.version <= :mavericks
2016-10-02 00:26:27 +08:00
version '2.5.7'
sha256 'f2c6eed9bfa31999f559396642e7bec0eb90ce0e3398f266fed8b3db5bdab37c'
2016-02-12 07:07:40 +08:00
# github.com/coteditor/CotEditor was verified as official when first introduced to the cask
2015-07-24 03:47:18 +08:00
url "https://github.com/coteditor/CotEditor/releases/download/#{version}/CotEditor_#{version}.dmg"
2016-10-04 16:52:53 +08:00
else
2016-11-18 12:34:49 +08:00
version '3.1.1'
sha256 'b3f7d23081b04dc2b9837d5049bfbcca610fefb3e06e4c6125168e714edeecc8'
2016-10-04 16:52:53 +08:00
# github.com/coteditor/CotEditor was verified as official when first introduced to the cask
url "https://github.com/coteditor/CotEditor/releases/download/#{version}/CotEditor_#{version}.dmg"
2015-05-19 17:41:51 +08:00
end
2014-06-30 17:54:14 +08:00
2015-12-26 04:57:40 +08:00
appcast 'https://github.com/coteditor/CotEditor/releases.atom',
2016-11-18 12:34:49 +08:00
checkpoint: 'c6e0f63280e8c0326597b18a37b976db22437a5430450a179fae50e1b6441c8c'
name 'CotEditor'
homepage 'https://coteditor.com/'
2014-09-16 00:05:26 +08:00
app 'CotEditor.app'
2016-10-11 17:26:01 +08:00
binary "#{appdir}/CotEditor.app/Contents/SharedSupport/bin/cot", target: 'cot'
2016-05-14 11:26:25 +08:00
zap delete: '~/Library/Containers/com.coteditor.CotEditor'
2014-01-10 13:59:48 +08:00
end