-
Notifications
You must be signed in to change notification settings - Fork 1
/
netpad.rb
33 lines (26 loc) · 1.03 KB
/
netpad.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
cask "netpad" do
arch arm: "arm64", intel: "x64"
version "0.7.1"
sha256 arm: "077f15ca3bbddeb4548a352f4cff765b3858bd4cfbfca8d5bf9b8fe86e9488b4",
intel: "811b8ca539588c5e8b5baa0f0797438e3e7382e2c87314c7e1b85179648cb7aa"
url "https://github.com/tareqimbasher/NetPad/releases/download/v#{version}/netpad-#{version}-mac-#{arch}.zip"
name "netpad"
desc "Cross-platform C# editor and playground"
homepage "https://github.com/tareqimbasher/NetPad"
livecheck do
url :url
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
depends_on cask: "dotnet-sdk"
app "NetPad.app"
postflight do
system "xattr", "-cr", "#{appdir}/NetPad.app" if OS.send(:mac?) && Hardware::CPU.send(:arm?)
end
zap trash: [
"~/Documents/NetPad",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.netpad.app.sfl*",
"~/Library/Application Support/netpad",
"~/Library/Preferences/com.netpad.app.plist",
"~/Library/Saved Application State/com.netpad.app.savedState",
]
end