Skip to content

Commit

Permalink
typora@dev: migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanazamfirei committed Apr 30, 2024
1 parent 18f2ba3 commit fa0f369
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Casks/t/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
cask "typora@dev" do
version "1.9.0"
sha256 "7d9595e28d5801c92700d6124f2e08d33220a61e2193b725c362b62e74b2c991"

language "zh-Hans-CN" do # use official Chinese mirror
url "https://download2.typoraio.cn/mac/Typora-#{version}-dev.dmg",
verified: "typoraio.cn/"
end
language "en", default: true do
url "https://download.typora.io/mac/Typora-#{version}-dev.dmg"
end

name "typora-dev"
desc "Configurable document editor that supports Markdown"
homepage "https://typora.io/"

livecheck do
url "https://typora.io/releases/dev_macos.xml"
regex(/Typora[._-]v?(\d+(?:\.\d+)+)(?:-dev)\.dmg/i)
strategy :sparkle do |item|
item.url[regex, 1]
end
end

auto_updates true
conflicts_with cask: "typora"
depends_on macos: ">= :big_sur"

app "Typora.app"

zap trash: [
"~/Library/Application Support/abnerworks.Typora",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/abnerworks.typora.sfl*",
"~/Library/Application Support/Typora",
"~/Library/Caches/abnerworks.Typora",
"~/Library/Cookies/abnerworks.Typora.binarycookies",
"~/Library/Preferences/abnerworks.Typora.plist",
"~/Library/Saved Application State/abnerworks.Typora.savedState",
"~/Library/WebKit/abnerworks.Typora",
]
end

0 comments on commit fa0f369

Please sign in to comment.