mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
manuskript 0.15.0
This commit is contained in:
+27
-7
@@ -1,18 +1,38 @@
|
||||
cask "manuskript" do
|
||||
version "0.10.0"
|
||||
sha256 "f48f9c96af19b42c61a1ab6119e581e9398c33a8795ba5051cc0d44add1d2d7f"
|
||||
version "0.15.0"
|
||||
sha256 "59cd751d2010e661e4b3fc38bbbf49801dcf9b9317d7a62aff0826f8bcbac085"
|
||||
|
||||
url "https://github.com/olivierkes/manuskript/releases/download/#{version.major_minor_patch}/manuskript-#{version}-osx.zip",
|
||||
url "https://github.com/olivierkes/manuskript/releases/download/#{version.major_minor_patch}/manuskript-#{version}-osx.dmg",
|
||||
verified: "github.com/olivierkes/manuskript/"
|
||||
name "Manuskript"
|
||||
desc "Tool for writers"
|
||||
homepage "https://www.theologeek.ch/manuskript/"
|
||||
|
||||
# Not every GitHub release provides a file for macOS, so we check multiple
|
||||
# recent releases instead of only the "latest" release.
|
||||
livecheck do
|
||||
url "https://github.com/olivierkes/manuskript/releases/"
|
||||
regex(/manuskript[._-]?(\d+(?:\.\d+)+)[._-]?osx\.zip/i)
|
||||
strategy :page_match
|
||||
url :url
|
||||
regex(/^manuskript[._-]v?(\d+(?:\.\d+)+)[._-]osx\.(?:dmg|pkg|zip)$/i)
|
||||
strategy :github_releases do |json, regex|
|
||||
json.map do |release|
|
||||
next if release["draft"] || release["prerelease"]
|
||||
|
||||
release["assets"]&.map do |asset|
|
||||
match = asset["name"]&.match(regex)
|
||||
next if match.blank?
|
||||
|
||||
match[1]
|
||||
end
|
||||
end.flatten
|
||||
end
|
||||
end
|
||||
|
||||
binary "manuskript/manuskript"
|
||||
app "manuskript.app"
|
||||
|
||||
zap trash: [
|
||||
"~/Library/Application Support/manuskript",
|
||||
"~/Library/Preferences/ch.theologeek.www.manuskript.plist",
|
||||
"~/Library/Preferences/com.manuskript.manuskript.plist",
|
||||
"~/Library/Saved Application State/ch.theologeek.manuskript.savedState",
|
||||
]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user