excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / y / yuque.rb
blob84020f22efda5d51dd5bd5a1c1dd7d4e74729c04
1 cask "yuque" do
2   version "3.4.5.1213,BJ9fec021fee4c44d3b96fa62a5a82bc5d"
3   sha256 "b664667b5d8a800fe22fdc4629efea556eea1131bc2d1023c0c452fb219da2c7"
5   url "https://app.nlark.com/yuque-desktop/#{version.csv.first}/#{version.csv.second}/Yuque-#{version.csv.first}.dmg",
6       verified: "app.nlark.com/yuque-desktop/"
7   name "Yuque"
8   name "语雀"
9   desc "Cloud knowledge base"
10   homepage "https://www.yuque.com/"
12   # The version on the download page is the stable version (see:
13   # https://github.com/Homebrew/homebrew-cask/pull/111472)
14   livecheck do
15     url "https://www.yuque.com/download/"
16     regex(/yuque-desktop%2Fv?(\d+(?:\.\d+)+)%2F([a-z0-9]+).*?\.dmg/i)
17     strategy :page_match do |page, regex|
18       page.scan(regex).map { |match| "#{match[0]},#{match[1]}" }
19     end
20   end
22   app "语雀.app"
24   zap trash: [
25     "~/Library/Application Support/yuque-desktop",
26     "~/Library/Preferences/com.yuque.app.plist",
27     "~/Library/Saved Application State/com.yuque.app.savedState",
28   ]
29 end