Casks/b/bing-wallpaper.rb
cask "bing-wallpaper" do
version "1.1.4"
sha256 "b23caf98fcfc0f9f1ab97ef263c67071b767a7774ebb9666461dbbba05bd4aae"
url "https://download.microsoft.com/download/9/4/a/94aa841f-5578-4856-8a8c-83ff78eb2d1f/Installer/#{version}/MSN/Flight2/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"
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.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