Merge pull request #153590 from nikhilbadyal/json-viewer

Added JSON Viewer: new-cask
This commit is contained in:
Miccal Matthews 2023-08-24 16:00:50 +08:00 committed by GitHub
commit 45f25db8bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

24
Casks/j/json-viewer.rb Normal file
View File

@ -0,0 +1,24 @@
cask "json-viewer" do
version "1.2.2"
sha256 "eeb39692b214f3604e7fc344ec7b822c7934897050cc7bbd1bedb7287c259670"
url "https://jsonviewer.app/JSON-Viewer-#{version}.dmg"
name "JSON Viewer"
desc "App to visualize, validate and format JSON datasets"
homepage "https://jsonviewer.app/"
livecheck do
url :homepage
regex(/JSON[._-]Viewer[._-]v?(\d+(\.\d+)+)\.dmg/i)
end
depends_on macos: ">= :mojave"
app "JSON Viewer.app"
zap trash: [
"~/Library/Application Scripts/com.pascalgiguere.JSON-Viewer",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.pascalgiguere.json-viewer.sfl2",
"~/Library/Containers/com.pascalgiguere.JSON-Viewer",
]
end