mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
yuque 3.2.2.1107
This commit is contained in:
+9
-4
@@ -1,8 +1,8 @@
|
||||
cask "yuque" do
|
||||
version "3.1.1.1104"
|
||||
sha256 "93c56f7c606708e7627900fcca18dcf67dc376c9b0d269cf5d19249862c9ca09"
|
||||
version "3.2.2.1107,BJbab2e9ee103947ed8c9e965a0ede656f"
|
||||
sha256 "3eb034254fb8260e42924232217bfcc4ae6cc45080241281faf5f30a5e07a2dd"
|
||||
|
||||
url "https://app.nlark.com/yuque-desktop/#{version}/BJ66df1ffa9d2c456b90cb0a70261ad2cb/Yuque-#{version}.dmg",
|
||||
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 "语雀"
|
||||
@@ -13,7 +13,12 @@ cask "yuque" do
|
||||
# https://github.com/Homebrew/homebrew-cask/pull/111472
|
||||
livecheck do
|
||||
url "https://www.yuque.com/download/"
|
||||
regex(/desktopDownloadVersion%22%3A%22(\d+(?:\.\d+)+)/i)
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user