homebrew-cask/Casks/n/nova.rb

37 lines
1.2 KiB
Ruby

cask "nova" do
version "11.9"
sha256 "d4e356e1cf733296c5e79ed827ef61aa546a90bb9d21526a0ef11def9caece1c"
url "https://download-cdn.panic.com/nova/Nova%20#{version}.zip",
verified: "download-cdn.panic.com/nova/"
name "Panic Nova"
desc "Native code editor"
homepage "https://nova.app/"
livecheck do
url "https://circle.panic.com/api/v1/appcast/nova/"
strategy :sparkle, &:short_version
end
auto_updates true
depends_on macos: ">= :big_sur"
app "Nova.app"
uninstall delete: [
"/Library/LaunchDaemons/com.panic.NovaPrivilegedHelper.plist",
"/Library/PrivilegedHelperTools/com.panic.NovaPrivilegedHelper",
]
zap trash: [
"~/Library/Application Scripts/com.panic.Nova.NovaQuickLookPreview",
"~/Library/Application Scripts/com.panic.Nova.NovaQuickLookThumbnail",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.panic.nova.sfl*",
"~/Library/Caches/com.panic.Nova",
"~/Library/Containers/com.panic.Nova.NovaQuickLookPreview",
"~/Library/Containers/com.panic.Nova.NovaQuickLookThumbnail",
"~/Library/Preferences/com.panic.Nova.plist",
"~/Library/WebKit/com.panic.Nova",
]
end