diff --git a/Casks/default-folder-x.rb b/Casks/default-folder-x.rb index 57fba0c89718..7e9ebb1386bf 100644 --- a/Casks/default-folder-x.rb +++ b/Casks/default-folder-x.rb @@ -1,42 +1,22 @@ cask 'default-folder-x' do - if MacOS.version <= :leopard - version '4.5.12' - sha256 'fc2225a106d0c26a4373d92e3a4b04483830506d22ec772b432a705a634c49ed' - elsif MacOS.version <= :mavericks - version '4.7.4' - sha256 '96cd688a099ec0ca3340d2e43d60f51513a2186a296346e7110c296ee00828e6' - else - version '5.1.3' - sha256 '2770531760efb3e8cc8ea58cc856b126fde117b54d2484470cca86dbc9516654' - end + version '5.1.3' + sha256 '2770531760efb3e8cc8ea58cc856b126fde117b54d2484470cca86dbc9516654' url "https://www.stclairsoft.com/download/DefaultFolderX-#{version}.dmg" name 'Default Folder X' homepage 'https://www.stclairsoft.com/DefaultFolderX/' - if MacOS.version <= :mavericks - installer manual: 'Default Folder X Installer.app' - else - app 'Default Folder X.app' - end + app 'Default Folder X.app' postflight do suppress_move_to_applications end - if MacOS.version <= :mavericks - zap delete: [ - '~/Library/Preferences/com.stclairsoft.DefaultFolderX.favorites.plist', - '~/Library/Preferences/com.stclairsoft.DefaultFolderX.plist', - '~/Library/Preferences/com.stclairsoft.DefaultFolderX.settings.plist', - ] - else - zap delete: [ - '~/Library/Application Support/.com.stclairsoft', - '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.stclairsoft.defaultfolderx5.sfl', - '~/Library/Application Support/com.stclairsoft.DefaultFolderX5', - '~/Library/Caches/com.stclairsoft.DefaultFolderX5', - '~/Library/Preferences/com.stclairsoft.DefaultFolderX5.plist', - ] - end + zap delete: [ + '~/Library/Application Support/.com.stclairsoft', + '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.stclairsoft.defaultfolderx5.sfl', + '~/Library/Application Support/com.stclairsoft.DefaultFolderX5', + '~/Library/Caches/com.stclairsoft.DefaultFolderX5', + '~/Library/Preferences/com.stclairsoft.DefaultFolderX5.plist', + ] end