cask "syntax-highlight" do version "2.1.26" sha256 "1913a9df490bc8b963d707c644136fa0423de1c5a8f4e86ba25c0c32ceacd86f" url "https://github.com/sbarex/SourceCodeSyntaxHighlight/releases/download/#{version}/Syntax.Highlight.zip" name "Syntax Highlight" desc "Quicklook extension for source files" homepage "https://github.com/sbarex/SourceCodeSyntaxHighlight" # The Sparkle feed contains `pubDate` values that are in Italian (e.g. # mar, 31 dic 2024 18:21:00 +0100), so the `Sparkle` strategy doesn't # accurately sort the items by date. We have to work with all the feed items # in the `strategy` block, as a way of avoiding the sorting issues. livecheck do url "https://sbarex.github.io/SourceCodeSyntaxHighlight/appcast.xml" strategy :sparkle do |items| items.map(&:short_version) end end auto_updates true depends_on macos: ">= :big_sur" app "Syntax Highlight.app" binary "#{appdir}/Syntax Highlight.app/Contents/Resources/syntax_highlight_cli" zap trash: [ "~/Library/Application Scripts/org.sbarex.SourceCodeSyntaxHighlight", "~/Library/Application Scripts/org.sbarex.SourceCodeSyntaxHighlight.QuicklookExtension", "~/Library/Application Support/Syntax Highlight", "~/Library/Caches/com.apple.helpd/Generated/org.sbarex.SourceCodeSyntaxHighlight.help*", "~/Library/Containers/org.sbarex.SourceCodeSyntaxHighlight", "~/Library/Containers/org.sbarex.SourceCodeSyntaxHighlight.QuicklookExtension", "~/Library/Preferences/org.sbarex.SourceCodeSyntaxHighlight.plist", ] end