-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
playdate-simulator.rb
36 lines (28 loc) 路 1.02 KB
/
playdate-simulator.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cask "playdate-simulator" do
version "2.4.2"
sha256 "67d589fa8cdeba30ce67525496864f24c5be8774202324afb69392f084564593"
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