Skip to content

Commit

Permalink
Merge pull request #177662 from Loyalsoldier/update-wetype
Browse files Browse the repository at this point in the history
wetype 1.2.0,357
  • Loading branch information
chenrui333 authored Jun 25, 2024
2 parents 8a26b60 + 8bbd1fa commit 0bbbedd
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Casks/w/wetype.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
cask "wetype" do
version "1.1.1,335"
sha256 "8fb4868c7f9576da1ac0d1de2e07e8dddd2e373cd8f4f6bf3cede3d40f19464a"
version "1.2.0,357"
sha256 "964a9efd14e88376204cc9b20a5abefabfa5f9622508c9f87c15fea7da6f44c1"

url "https://wetype.wxqcloud.qq.com/app/mac/#{version.csv.first}/WeTypeInstaller_#{version.csv.first}_#{version.csv.second}.zip"
url "https://download.z.weixin.qq.com/app/mac/#{version.csv.first}/WeTypeInstaller_#{version.csv.first}_#{version.csv.second}.zip"
name "WeType"
desc "Text input app"
name "微信输入法"
desc "Text input app from WeChat team for Chinese users"
homepage "https://z.weixin.qq.com/"

livecheck do
strategy :sparkle
url "https://download.weread.qq.com/app/wxkb/mac/updates.xml"
url "https://z.weixin.qq.com/web/api/app_info"
regex(/WeTypeInstaller[._-]v?(\d+(?:.\d+)+)[._-](\d+).zip/i)
strategy :json do |json, regex|
match = json["data"]["mac"]["download_link"].match(regex)
"#{match[1]},#{match[2]}"
end
end

auto_updates true
Expand Down

0 comments on commit 0bbbedd

Please sign in to comment.