Skip to content

Commit

Permalink
Merge pull request #178638 from khipp/update-bing-wallpaper
Browse files Browse the repository at this point in the history
  • Loading branch information
p-linnane authored Jul 9, 2024
2 parents 871cd45 + 35d0488 commit 9a6e5f0
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Casks/b/bing-wallpaper.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
cask "bing-wallpaper" do
version "1.1.3,24"
version "1.1.3"
sha256 "0c7194da0c12c92c8a4edb8e298ed4e523b3d2db5610cdc43a9255e92f58ebfa"

url "https://download.microsoft.com/download/9/4/a/94aa841f-5578-4856-8a8c-83ff78eb2d1f/Installer/#{version.csv.first}/MSN/Flight2/MW021/Bing%20Wallpaper.pkg"
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"
strategy :extract_plist
regex(%r{Installer/(\d+(?:\.\d+)+)[^/]*/}i)
strategy :header_match
end

depends_on macos: ">= :big_sur"
Expand All @@ -22,7 +23,17 @@
],
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

0 comments on commit 9a6e5f0

Please sign in to comment.