forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault-folder-x.rb
27 lines (22 loc) · 1.04 KB
/
default-folder-x.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cask "default-folder-x" do
version "6.0.7"
sha256 "5a298ef0783c11a6b5d88bfe88615e3f35449ebc06a6622fb022305853b66f7c"
url "https://www.stclairsoft.com/download/DefaultFolderX-#{version}.dmg"
name "Default Folder X"
desc "Utility to enhance the Open and Save dialogs in applications"
homepage "https://www.stclairsoft.com/DefaultFolderX/"
livecheck do
url "https://www.stclairsoft.com/cgi-bin/sparkle.cgi?DX#{version.major}"
strategy :sparkle, &:short_version
end
auto_updates true
depends_on macos: ">= :high_sierra"
app "Default Folder X.app"
zap trash: [
"~/Library/Application Support/.com.stclairsoft",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.stclairsoft.defaultfolderx#{version.major}.sfl*",
"~/Library/Application Support/com.stclairsoft.DefaultFolderX#{version.major}",
"~/Library/Caches/com.stclairsoft.DefaultFolderX#{version.major}",
"~/Library/Preferences/com.stclairsoft.DefaultFolderX#{version.major}.plist",
]
end