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/"
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)
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]}" }
25 "~/Library/Application Support/yuque-desktop",
26 "~/Library/Preferences/com.yuque.app.plist",
27 "~/Library/Saved Application State/com.yuque.app.savedState",