From 8bbd1fa4eec7e5957e42ed792848b7563f219475 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Mon, 24 Jun 2024 23:44:55 +0800 Subject: [PATCH] wetype 1.2.0,357 --- Casks/w/wetype.rb | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Casks/w/wetype.rb b/Casks/w/wetype.rb index 1ac06e8acd022..178cdadfd5f06 100644 --- a/Casks/w/wetype.rb +++ b/Casks/w/wetype.rb @@ -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