Skip to content

Commit

Permalink
default-folder-x.rb: remove conditionals (#29303)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorgalvao authored and miccal committed Jan 23, 2017
1 parent 2029653 commit 3d9ae15
Showing 1 changed file with 10 additions and 30 deletions.
40 changes: 10 additions & 30 deletions Casks/default-folder-x.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3d9ae15

Please sign in to comment.