Files

39 lines
1.2 KiB
Ruby
Raw Permalink Normal View History

2023-02-21 01:43:27 +01:00
cask "codeedit" do
2023-08-02 22:35:33 +08:00
version "0.0.3-alpha.36,5650b45"
sha256 "5faeabb324bcf3fc822244e8f309098ede05b8f38c27f6de8dc10da11c43a6c1"
2023-02-21 01:43:27 +01:00
url "https://github.com/CodeEditApp/CodeEdit/releases/download/#{version.csv.first}/CodeEdit-#{version.csv.second}.dmg",
verified: "github.com/CodeEditApp/CodeEdit/"
name "CodeEdit"
desc "Code editor"
homepage "https://www.codeedit.app/"
livecheck do
2023-09-29 23:57:40 -04:00
url :url
regex(%r{/\D*?([^/]+?)/CodeEdit[._-]([a-f0-9]+)\.dmg$}i)
strategy :github_latest do |json, regex|
json["assets"]&.map do |asset|
match = asset["browser_download_url"]&.match(regex)
next if match.blank?
2023-02-21 01:43:27 +01:00
2023-09-29 23:57:40 -04:00
"#{match[1]},#{match[2]}"
end
2023-02-21 01:43:27 +01:00
end
end
2023-06-15 09:07:14 -05:00
depends_on macos: ">= :ventura"
2023-02-21 01:43:27 +01:00
app "CodeEdit.app"
zap trash: [
2023-06-15 11:10:28 -04:00
"~/Library/Application Scripts/*.CodeEdit.OpenWithCodeEdit",
2023-02-21 01:43:27 +01:00
"~/Library/Application Support/CodeEdit",
2023-06-15 11:10:28 -04:00
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/*.codeedit.sfl2",
"~/Library/Caches/*.CodeEdit",
"~/Library/Containers/*.CodeEdit.OpenWithCodeEdit",
"~/Library/HTTPStorages/*.CodeEdit",
"~/Library/Preferences/*.CodeEdit.plist",
"~/Library/Saved Application State/*.CodeEdit.savedState",
2023-02-21 01:43:27 +01:00
]
end