mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
36 lines
1.3 KiB
Ruby
36 lines
1.3 KiB
Ruby
cask "douyin-chat" do
|
|
version "1.1.5,11213796"
|
|
sha256 "70e8d195579fd878f369e955d1ef92a3d59ce5183cbb326ffbdbe64cfd9a3dea"
|
|
|
|
url "https://lf-impc.douyinstatic.com/obj/tos-aweme-im-pc/7094550955558967563/releases/#{version.csv.second}/#{version.csv.first}/darwin-x64/DouyinChat.dmg",
|
|
verified: "lf-impc.douyinstatic.com/"
|
|
name "Douyin Chat"
|
|
name "抖音聊天"
|
|
desc "Chat client for Douyin"
|
|
homepage "https://www.douyin.com/downloadpage/chat"
|
|
|
|
livecheck do
|
|
url "https://tron.jiyunhudong.com/api/sdk/check_update?pid=7094550955558967563&uid=2386374454157337&branch=release&buildId=0"
|
|
strategy :json do |json|
|
|
version = json.dig("data", "manifest", "darwin", "version")
|
|
build = json.dig("data", "buildId")
|
|
next if version.blank? || build.blank?
|
|
|
|
"#{version},#{build}"
|
|
end
|
|
end
|
|
|
|
auto_updates true
|
|
depends_on macos: ">= :high_sierra"
|
|
|
|
app "抖音聊天.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.bytedance.awemeim.desktop.sfl3",
|
|
"~/Library/Caches/com.bytedance.awemeim.desktop",
|
|
"~/Library/HTTPStorages/com.bytedance.awemeim.desktop",
|
|
"~/Library/Preferences/com.bytedance.awemeim.desktop.plist",
|
|
"~/Library/Saved Application State/com.bytedance.awemeim.desktop.savedState",
|
|
]
|
|
end
|