cask "pulsar" do arch arm: "Silicon", intel: "Intel" arch_suffix = on_arch_conditional arm: "-arm64" version "1.122.0" sha256 arm: "04d497eaf137fa0966bf30596a06aaf91ffdb2d2ee1f2d3b853c8969f6bb4abc", intel: "ed2657cb08ab62da6be66ea9c64d224ed36c62c0f6921c55df8e494a8835139b" url "https://github.com/pulsar-edit/pulsar/releases/download/v#{version}/#{arch}.Mac.Pulsar-#{version}#{arch_suffix}-mac.zip", verified: "github.com/pulsar-edit/pulsar/" name "Pulsar" desc "Text editor" homepage "https://pulsar-edit.dev/" livecheck do url :url strategy :github_latest end app "Pulsar.app" binary "#{appdir}/Pulsar.app/Contents/Resources/app/ppm/bin/apm", target: "ppm" binary "#{appdir}/Pulsar.app/Contents/Resources/pulsar.sh", target: "pulsar" zap trash: [ "~/.pulsar", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/dev.pulsar-edit.pulsar.sfl*", "~/Library/Application Support/Pulsar", "~/Library/Preferences/dev.pulsar-edit.pulsar.plist", "~/Library/Saved Application State/dev.pulsar-edit.pulsar.savedState", ] end