mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
32 lines
1016 B
Ruby
32 lines
1016 B
Ruby
cask "yuque" do
|
|
version "3.2.2.1107,BJbab2e9ee103947ed8c9e965a0ede656f"
|
|
sha256 "3eb034254fb8260e42924232217bfcc4ae6cc45080241281faf5f30a5e07a2dd"
|
|
|
|
url "https://app.nlark.com/yuque-desktop/#{version.csv.first}/#{version.csv.second}/Yuque-#{version.csv.first}.dmg",
|
|
verified: "app.nlark.com/yuque-desktop/"
|
|
name "Yuque"
|
|
name "语雀"
|
|
desc "Cloud knowledge base"
|
|
homepage "https://www.yuque.com/"
|
|
|
|
# The stable version is that listed on the download page. See:
|
|
# https://github.com/Homebrew/homebrew-cask/pull/111472
|
|
livecheck do
|
|
url "https://www.yuque.com/download/"
|
|
regex(/yuque-desktop%2F(\d+(?:\.\d+)+)%2F([A-Za-z0-9]+).*?\.dmg/i)
|
|
strategy :page_match do |page, regex|
|
|
page.scan(regex).map do |match|
|
|
"#{match[0]},#{match[1]}"
|
|
end
|
|
end
|
|
end
|
|
|
|
app "语雀.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/yuque-desktop",
|
|
"~/Library/Preferences/com.yuque.app.plist",
|
|
"~/Library/Saved Application State/com.yuque.app.savedState",
|
|
]
|
|
end
|