Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / megasync.rb
blob2c7850a46d4a52db4947ad9e0246b36a03c228bd
1 cask "megasync" do
2   arch arm: "Arm64"
4   version "5.6.1.0"
5   sha256 :no_check
7   url "https://mega.nz/MEGAsyncSetup#{arch}.dmg"
8   name "MEGAsync"
9   desc "Syncs files between computers and MEGA Cloud drives"
10   homepage "https://mega.nz/sync"
12   livecheck do
13     url "https://github.com/meganz/MEGAsync"
14     regex(/^v?(\d+(?:\.\d+)+)[._-]OSX$/i)
15   end
17   auto_updates true
18   depends_on macos: ">= :sierra"
20   app "MEGAsync.app"
22   uninstall launchctl:  "mega.mac.megaupdater",
23             quit:       "mega.mac",
24             login_item: "MEGAsync"
26   zap trash: [
27     "~/Library/Application Scripts/mega.mac.MEGAShellExtFinder",
28     "~/Library/Caches/mega.mac",
29     "~/Library/Containers/mega.mac.MEGAShellExtFinder",
30     "~/Library/LaunchAgents/mega.mac.megaupdater.plist",
31     "~/Library/Preferences/mega.mac.plist",
32   ]
33 end