Browse Source

CLeanmymac2: Use version interpolation

master
Michael Ford 9 years ago
parent
commit
2d464206aa
  1. 34
      Casks/cleanmymac2.rb

34
Casks/cleanmymac2.rb

@ -1,28 +1,28 @@
cask 'cleanmymac2' do
version '2.3.5'
version '2.3.5-1427986644'
sha256 '16e192edcf58f25c6763349ef0e5194268bec4d000912b64b34f5897b4784097'
# devmate.com is the official download host per the vendor homepage
url 'https://dl.devmate.com/com.macpaw.CleanMyMac2/2.3.5/1427986644/CleanMyMac2-2.3.5.zip'
appcast 'http://updates.devmate.com/com.macpaw.CleanMyMac2.xml'
# devmate.com is the official download host per the appcast feed
url "http://dl.devmate.com/com.macpaw.CleanMyMac2/#{version.sub(%r{-.*$},'')}/#{version.sub(%r{.*?-},'')}/CleanMyMac#{version.to_i}-#{version.sub(%r{-.*$},'')}.zip"
appcast "http://updates.devmate.com/com.macpaw.CleanMyMac#{version.to_i}.xml"
name 'CleanMyMac'
homepage 'https://macpaw.com/cleanmymac'
license :commercial
app 'CleanMyMac 2.app'
app "CleanMyMac #{version.to_i}.app"
uninstall :launchctl => 'com.macpaw.CleanMyMac2.Agent'
uninstall :launchctl => "com.macpaw.CleanMyMac#{version.to_i}.Agent"
zap :delete => [
'/Library/LaunchDaemons/com.macpaw.CleanMyMac2.Agent.plist',
'/Library/PrivilegedHelperTools/com.macpaw.CleanMyMac2.Agent',
'/Users/Shared/CleanMyMac 2',
'/private/var/run/com.macpaw.CleanMyMac2.Agent.socket',
'~/Library/Application Support/CleanMyMac 2',
'~/Library/Caches/CleanMyMac 2',
'~/Library/Logs/CleanMyMac 2.log',
'~/Library/Preferences/com.macpaw.CleanMyMac-2-Helper.plist',
'~/Library/Preferences/com.macpaw.CleanMyMac2.KnowledgeBase.plist',
'~/Library/Preferences/com.macpaw.CleanMyMac2.plist',
]
"/Library/LaunchDaemons/com.macpaw.CleanMyMac#{version.to_i}.Agent.plist",
"/Library/PrivilegedHelperTools/com.macpaw.CleanMyMac#{version.to_i}.Agent",
"/Users/Shared/CleanMyMac #{version.to_i}",
"/private/var/run/com.macpaw.CleanMyMac#{version.to_i}.Agent.socket",
"~/Library/Application Support/CleanMyMac #{version.to_i}",
"~/Library/Caches/CleanMyMac #{version.to_i}",
"~/Library/Logs/CleanMyMac #{version.to_i}.log",
"~/Library/Preferences/com.macpaw.CleanMyMac-#{version.to_i}-Helper.plist",
"~/Library/Preferences/com.macpaw.CleanMyMac#{version.to_i}.KnowledgeBase.plist",
"~/Library/Preferences/com.macpaw.CleanMyMac#{version.to_i}.plist",
]
end

Loading…
Cancel
Save