excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / android-file-transfer.rb
blob81084da702b53916e8070a4e3633d636ee24a702
1 cask "android-file-transfer" do
2   version "5071136"
3   sha256 "b9249399a351e8146358ff1ddb546c68a63134b780be795ae64e0a4c2258bc61"
5   url "https://dl.google.com/dl/androidjumper/mtp/#{version}/androidfiletransfer.dmg",
6       verified: "google.com/dl/androidjumper/"
7   name "Android File Transfer"
8   desc "Transfer files from and to an Android smartphone"
9   homepage "https://www.android.com/filetransfer/"
11   livecheck do
12     url "https://dl.google.com/dl/androidjumper/mtp/current/androidfiletransfer.dmg"
13     regex(%r{/(\d+)/androidfiletransfer\.dmg}i)
14     strategy :header_match
15   end
17   app "Android File Transfer.app"
19   zap trash: [
20         "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.google.android.mtpviewer.sfl*",
21         "~/Library/Application Support/Google/Android File Transfer",
22         "~/Library/Preferences/com.google.android.mtpviewer.plist",
23       ],
24       rmdir: "~/Library/Application Support/Google"
26   caveats do
27     requires_rosetta
28   end
29 end