40 lines
2.2 KiB
Ruby
40 lines
2.2 KiB
Ruby
cask 'coteditor' do
|
|
if MacOS.version <= :snow_leopard
|
|
version '1.3.1'
|
|
sha256 '5c871bd9de30fc3c76fc66acb4ea258d4d3762ae341181d65a7ef1f8de4751c5'
|
|
# 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}_For10.4.dmg"
|
|
elsif MacOS.version <= :lion
|
|
version '1.5.4'
|
|
sha256 '444133083698c7c94c2b029644f39a0e36982ae34c24745789fa890626188347'
|
|
# 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"
|
|
elsif MacOS.version <= :mavericks
|
|
version '2.5.7'
|
|
sha256 'f2c6eed9bfa31999f559396642e7bec0eb90ce0e3398f266fed8b3db5bdab37c'
|
|
# 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"
|
|
else
|
|
version '3.1.8'
|
|
sha256 '353c0b459ceb4f4c631544b798d6ae66d9358c56a01889cc5608422f7d144a4c'
|
|
# 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"
|
|
end
|
|
|
|
appcast 'https://github.com/coteditor/CotEditor/releases.atom',
|
|
checkpoint: '0cb6c142d02b25128c68cfc36716a889803e19cfb4aee23d8777da04a4dec2ae'
|
|
name 'CotEditor'
|
|
homepage 'https://coteditor.com/'
|
|
|
|
app 'CotEditor.app'
|
|
binary "#{appdir}/CotEditor.app/Contents/SharedSupport/bin/cot", target: 'cot'
|
|
|
|
zap delete: [
|
|
'~/Library/Application Scripts/com.coteditor.CotEditor',
|
|
'~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.coteditor.coteditor.sfl',
|
|
'~/Library/Caches/com.apple.helpd/SDMHelpData/Other/English/HelpSDMIndexFile/com.coteditor.CotEditor.help',
|
|
'~/Library/Caches/com.apple.helpd/SDMHelpData/Other/Japanese/HelpSDMIndexFile/com.coteditor.CotEditor.help',
|
|
'~/Library/Containers/com.coteditor.CotEditor',
|
|
]
|
|
end
|