cask "bing-wallpaper" do version "1.1.8" sha256 "564b0793186dfb639d5207849a65ab20a6ea0b93a16d3de3939a24bb9b56984c" url "https://download.microsoft.com/download/3a8e7366-aac0-4636-bc1d-a3c6c217accf/Installer/#{version}/MSN/Var1/MW021/Bing%20Wallpaper.pkg" name "Bing Wallpaper" desc "Use the Bing daily image as your wallpaper" homepage "https://bingwallpaper.microsoft.com/" livecheck do url "https://go.microsoft.com/fwlink/?linkid=2181295&installerType=PKG" regex(%r{Installer/(\d+(?:\.\d+)+)[^/]*/}i) strategy :header_match end depends_on macos: ">= :big_sur" pkg "Bing Wallpaper.pkg" uninstall launchctl: [ "com.microsoft.msbwapp", "com.microsoft.msbwupdater", ], quit: [ "com.microsoft.autoupdate2", "com.microsoft.MicrosoftBingSearch", "com.microsoft.msbwapp", "com.microsoft.msbwdefaults", ], pkgutil: "com.microsoft.msbwpackage" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.microsoft.msbwdefaults.sfl*", "~/Library/Application Support/Microsoft/Bing Wallpaper", ] caveats do requires_rosetta end end