-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
default-folder-x.rb: remove conditionals (#29303)
- Loading branch information
1 parent
2029653
commit 3d9ae15
Showing
1 changed file
with
10 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |