forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unison.rb
29 lines (23 loc) · 1003 Bytes
/
unison.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
cask "unison" do
if MacOS.version <= :yosemite
version "2.48.3"
sha256 "d578196d8b38f35c1e0410a1c86ff4e115a91f7eb211201db7a940a3a3e0f099"
url "https://github.com/bcpierce00/unison/releases/download/#{version}/Unison-OS-X-#{version}.zip",
verified: "github.com/bcpierce00/unison/"
else
version "2.51.2"
sha256 "0738a6978fa29bb2af409322069cc20df293b770877942ac4b8774f06e774aa5"
url "https://github.com/bcpierce00/unison/releases/download/v#{version}/Unison-#{version}.OS.X.zip",
verified: "github.com/bcpierce00/unison/"
end
appcast "https://github.com/bcpierce00/unison/releases.atom"
name "Unison"
desc "File synchronizer"
homepage "https://www.cis.upenn.edu/~bcpierce/unison/"
conflicts_with formula: "unison"
app "Unison.app"
binary "#{appdir}/Unison.app/Contents/MacOS/cltool", target: "unison"
postflight do
system_command "/usr/bin/defaults", args: ["write", "edu.upenn.cis.Unison", "CheckCltool", "-bool", "false"]
end
end