20 lines
799 B
Ruby
20 lines
799 B
Ruby
cask :v1 => 'syncthing' do
|
|
version '0.11.16'
|
|
appcast 'https://github.com/syncthing/syncthing/releases.atom'
|
|
name 'Syncthing'
|
|
homepage 'https://syncthing.net'
|
|
license :mpl
|
|
|
|
if Hardware::CPU.is_32_bit?
|
|
url "https://github.com/syncthing/syncthing/releases/download/v#{version}/syncthing-macosx-386-v#{version}.tar.gz"
|
|
sha256 'ccc50e65a9a8fdc9ee40f5d3b24db4ed4558e725f4f523789b05a3be8ee35542'
|
|
binary "syncthing-macosx-386-v#{version}/syncthing"
|
|
else
|
|
url "https://github.com/syncthing/syncthing/releases/download/v#{version}/syncthing-macosx-amd64-v#{version}.tar.gz"
|
|
sha256 '4d42c29fbcbcd7e138e5b2070f6a4f6fa92c17d0960ba3a2210b39fa9268ee49'
|
|
binary "syncthing-macosx-amd64-v#{version}/syncthing"
|
|
end
|
|
|
|
zap :delete => '~/Library/Application Support/Syncthing'
|
|
end
|