homebrew-cask/Casks/m/microsoft-onenote.rb

31 lines
937 B
Ruby

cask "microsoft-onenote" do
version "16.86.24060916"
sha256 "1c541ec2b147b2bcbf01b9daa8d27f7423fcc0702a55ae932091366ce6d24bd9"
url "https://officecdnmac.microsoft.com/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_OneNote_#{version}_Updater.pkg"
name "Microsoft OneNote"
desc "Digital note taking app"
homepage "https://www.microsoft.com/en-us/microsoft-365/onenote/digital-note-taking-app"
livecheck do
cask "microsoft-office"
end
auto_updates true
conflicts_with cask: [
"microsoft-office",
"microsoft-office-businesspro",
]
depends_on macos: ">= :monterey"
pkg "Microsoft_OneNote_#{version}_Updater.pkg"
uninstall pkgutil: "com.microsoft.package.Microsoft_OneNote.app",
delete: "/Applications/Microsoft OneNote.app"
zap trash: [
"~/Library/Application Scripts/com.microsoft.onenote.mac*",
"~/Library/Containers/com.microsoft.onenote.mac*",
]
end