Open alexeyshockov opened 3 years ago
No plans to do this yet. I don’t think there’s enough demand :) I’ll keep the issue open though. If enough people need this, we can figure something out.
I noticed there's a, possibly new, easy workflow to write a cask formula, brew create [--cask ...] url
. I've drafted one, and show 2 other brew cask formulae for comparison.
I'll note, based on the release naming scheme, the brew-cask recognized version is M.m
instead of M.m.p
, because of the name format, v1.2.zip
vs v1.1.0.zip
and v1.0.0.zip
on releases.
# Documentation: https://docs.brew.sh/Formula-Cookbook
# https://rubydoc.brew.sh/Formula
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!
cask "anykey" do
version "1.2"
sha256 "004a880211fb24c80c43770c21796ce84f67e2270f9daa3d562b1f4ca17a4b0f"
url "https://github.com/temochka/Anykey/releases/download/v#{version}.0/Anykey-v#{version}.zip"
name "AnyKey"
desc "A free macOS app for binding shell commands to system-wide or app-specific hotkeys."
homepage "https://github.com/temochka/Anykey#readme"
livecheck do
url "https://github.com/temochka/Anykey"
strategy :github_latest
end
auto_updates false
app "AnyKey-v#{version}/AnyKey.app"
zap trash: [
"~/.config/anykey.json.example"
]
end
cask "element" do
version "1.8.5"
sha256 "5aa73df286c190ff95e3e7a336c797033549f2d1ea978d572472b4323a8acdf0"
url "https://packages.riot.im/desktop/install/macos/Element-#{version}-universal.dmg",
verified: "packages.riot.im/desktop/"
name "Element"
desc "Matrix collaboration client"
homepage "https://element.io/get-started"
livecheck do
url "https://github.com/vector-im/riot-desktop"
strategy :github_latest
end
auto_updates true
app "Element.app"
zap trash: [
"~/Library/Application Support/Element",
"~/Library/Application Support/Riot",
"~/Library/Caches/im.riot.app",
"~/Library/Caches/im.riot.app.ShipIt",
"~/Library/Logs/Riot",
"~/Library/Preferences/im.riot.app.helper.plist",
"~/Library/Preferences/im.riot.app.plist",
"~/Library/Saved Application State/im.riot.app.savedState",
]
end
cask "quicksilver" do
version "1.6.1"
sha256 "abc2c084913f95d3036a0cfe696bf9cd4b9fd0d6c3c16bec6e4a98ae600492c8"
url "https://qsapp.com/archives/downloads/Quicksilver%20#{version}.dmg"
name "Quicksilver"
desc "Productivity application"
homepage "https://qsapp.com/"
livecheck do
url "https://qsapp.com/archives/"
strategy :page_match
regex(%r{href=.*?/Quicksilver%20(\d+(?:\.\d+)*)\.dmg}i)
end
auto_updates true
app "Quicksilver.app"
zap trash: [
"~/Library/Preferences/com.blacktree.Quicksilver.plist",
"~/Library/Application Support/Quicksilver",
]
end
Thanks @mcint! I’m traveling right now, but I should be able to take a closer look some time later this week.
Hey, thanks for the app! Are you going to provide a Homebrew formula for it, for a more convenient way to install? Just curious.