30 lines
1.2 KiB
Ruby
30 lines
1.2 KiB
Ruby
cask "coteditor" do
|
|
if MacOS.version <= :yosemite
|
|
version "3.2.8"
|
|
sha256 "73dd20d27b75c7b0c46242a465adb3df5b5f0b901f42c5a9a85777a57c4a17d6"
|
|
else
|
|
version "4.0.1"
|
|
sha256 "879fa6ef8199c10c8b42b6adaa4a528b41295b97457c7e06fd1a412f65f0ffb9"
|
|
end
|
|
|
|
url "https://github.com/coteditor/CotEditor/releases/download/#{version}/CotEditor_#{version}.dmg",
|
|
verified: "github.com/coteditor/CotEditor/"
|
|
appcast "https://github.com/coteditor/CotEditor/releases.atom"
|
|
name "CotEditor"
|
|
desc "Plain-text editor for web pages, program source codes and more"
|
|
homepage "https://coteditor.com/"
|
|
|
|
auto_updates true
|
|
|
|
app "CotEditor.app"
|
|
binary "#{appdir}/CotEditor.app/Contents/SharedSupport/bin/cot"
|
|
|
|
zap trash: [
|
|
"~/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
|