homebrew-cask/Casks/themeengine.rb

32 lines
961 B
Ruby

cask "themeengine" do
if MacOS.version <= :yosemite
version "0.0.4"
sha256 "35a99145577cb300e2383d3432b47c13907e5d6ca24e720c44a83f4a1f990f4a"
url "https://github.com/alexzielenski/ThemeEngine/releases/download/#{version}/ThemeEngine.zip"
else
version "1.0.0,111"
sha256 "2f7039bf8a30a20da20b292252759a501d15962f909d3b2274db9c2ec7a3bf39"
url "https://github.com/alexzielenski/ThemeEngine/releases/download/#{version.csv.first}(#{version.csv.second})/ThemeEngine_111.zip"
end
name "ThemeEngine"
desc "App to edit compiled .car files"
homepage "https://github.com/alexzielenski/ThemeEngine/"
livecheck do
url :url
strategy :git do |tags|
tags.map do |tag|
match = tag.match(/^(\d+(?:\.\d+)*)\((\d+)\)$/i)
"#{match[1]},#{match[2]}" if match
end.compact
end
end
app "ThemeEngine.app"
zap trash: "~/Library/Preferences/com.alexzielenski.ThemeEngine.LSSharedFileList.plist"
end