Casks/p/playdate-simulator.rb
cask "playdate-simulator" do
version "2.5.0"
sha256 "a9d38657d6bf830a57ca8b1c90f7db460e39838a9567c51e647c5c217c885cf4"
url "https://download-cdn.panic.com/playdate_sdk/PlaydateSDK-#{version}.zip",
verified: "download-cdn.panic.com/playdate_sdk/"
name "Playdate SDK"
desc "Playdate Lua and C APIs, docs and Simulator for local development"
homepage "https://play.date/dev/"
livecheck do
url "https://download.panic.com/playdate_sdk/PlaydateSDK-latest.zip"
strategy :header_match
end
depends_on macos: ">= :catalina"
pkg "PlaydateSDK.pkg"
uninstall_preflight do
Pathname("/usr/local/bin").glob("arm-*").each do |exec|
Utils.gain_permissions_remove(exec) if exec.exist? && exec.readlink.to_s.include?("playdate")
end
end
uninstall pkgutil: "date.play.sdk",
delete: "/usr/local/playdate",
trash: "~/Developer/PlaydateSDK",
rmdir: "~/Developer"
zap trash: "~/.Playdate"
caveats do
license "https://play.date/dev/sdk-license"
end
end