mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
41 lines
1.8 KiB
Ruby
41 lines
1.8 KiB
Ruby
cask "standard-notes" do
|
|
arch arm: "arm64", intel: "x64"
|
|
|
|
version "3.183.7"
|
|
sha256 arm: "32d674daa87f71d49fc983d440db9dd49dc6097f4bee25871f1aea6db989af60",
|
|
intel: "3d12baefe463352e5463e0765807a5bbf7381fb746ea4adfedcc489c982a3259"
|
|
|
|
url "https://github.com/standardnotes/app/releases/download/%40standardnotes%2Fdesktop%40#{version}/standard-notes-#{version}-mac-#{arch}.zip",
|
|
verified: "github.com/standardnotes/app/"
|
|
name "Standard Notes"
|
|
desc "Free, open-source, and completely encrypted notes app"
|
|
homepage "https://standardnotes.org/"
|
|
|
|
# The app's auto-updater avoids versions marked as "pre-release" on GitHub,
|
|
# so we do the same thing in this check.
|
|
# See: https://github.com/Homebrew/homebrew-cask/pull/145753#issuecomment-1521465815
|
|
# We specifically check the GitHub releases page with the `prerelease:false`
|
|
# query (instead of using the `GithubReleases` strategy) because upstream
|
|
# publishes a lot of pre-release versions and they may push the most recent
|
|
# stable desktop release out of the most recent info from the GitHub API.
|
|
livecheck do
|
|
url "https://github.com/standardnotes/app/releases?q=prerelease%3Afalse"
|
|
regex(%r{href=["']?[^"' >]*?/tag/%40standardnotes%2Fdesktop%40(\d+(?:\.\d+)+)["' >]}i)
|
|
strategy :page_match
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :catalina"
|
|
|
|
app "Standard Notes.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/Standard Notes",
|
|
"~/Library/Caches/org.standardnotes.standardnotes.ShipIt",
|
|
"~/Library/Caches/org.standardnotes.standardnotes",
|
|
"~/Library/Preferences/org.standardnotes.standardnotes.helper.plist",
|
|
"~/Library/Preferences/org.standardnotes.standardnotes.plist",
|
|
"~/Library/Saved Application State/org.standardnotes.standardnotes.savedState",
|
|
]
|
|
end
|