mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
Merge pull request #158614 from Igotit/master
Update qingg from 2.14 to 2.15
This commit is contained in:
+13
-4
@@ -1,6 +1,6 @@
|
||||
cask "qingg" do
|
||||
version "2.14"
|
||||
sha256 "26680dbc411f15c460866f07b2f4a7849d11f2717983688592d2c406cccc0e31"
|
||||
version "2.15"
|
||||
sha256 "3d4e9ec86ef863564b5de4879c8186051e0e6a9a166bad6f0629ff547283dacb"
|
||||
|
||||
url "https://qingg.im/download/Qingg-#{version}.dmg"
|
||||
name "QinggIM"
|
||||
@@ -8,16 +8,25 @@ cask "qingg" do
|
||||
desc "Wubi input method"
|
||||
homepage "https://qingg.im/mac/"
|
||||
|
||||
# The `shortVersionString` value may contain additional text besides the
|
||||
# numeric version (e.g., `2.15 十周年纪念版`), so we match the version from
|
||||
# the URL in this instance.
|
||||
livecheck do
|
||||
url "https://qingg.im/sparkle/appcast.php"
|
||||
strategy :sparkle, &:short_version
|
||||
regex(/Qingg[._-]v?(\d+(?:\.\d+)+)\.(?:dmg|pkg|zip)/i)
|
||||
strategy :sparkle do |item|
|
||||
match = item&.url&.match(regex)
|
||||
next if match.blank?
|
||||
|
||||
match[1]
|
||||
end
|
||||
end
|
||||
|
||||
auto_updates true
|
||||
|
||||
pkg "安装包.pkg"
|
||||
|
||||
uninstall pkgutil: "com.aodaren.*"
|
||||
uninstall pkgutil: "com.aodaren.Qingg.pkg"
|
||||
|
||||
zap trash: [
|
||||
"~/Library/Application Support/com.aodaren.inputmethod.Qingg",
|
||||
|
||||
Reference in New Issue
Block a user