cask "shutter-encoder" do arch arm: "Apple Silicon", intel: "Mac 64bits" version "18.5" sha256 :no_check # required as upstream package is updated in-place url "https://www.shutterencoder.com/Shutter%20Encoder%20#{version}%20#{arch.gsub(" ", "%20")}.pkg" name "Shutter Encoder" desc "Video, audio and image converter" homepage "https://www.shutterencoder.com/" livecheck do url "https://www.shutterencoder.com/changelog.txt" regex(/^\s*Version\s*(\d+(?:\.\d+)+)/i) end pkg "Shutter Encoder #{version} #{arch}.pkg" uninstall launchctl: "application.com.paulpacifico.shutterencoder.*", quit: "com.paulpacifico.shutterencoder", pkgutil: "com.paulpacifico.shutterencoder", delete: "/Applications/Shutter Encoder.app" zap trash: "~/Documents/Shutter Encoder" end