20 lines
799 B
Ruby
20 lines
799 B
Ruby
cask :v1 => 'syncthing' do
|
|
version '0.10.29'
|
|
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 'd6267d310ce7eca5930ac741cc0a2bdc0967578f1b682940eebbc2eabc007541'
|
|
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 '8e3fd6c13b8e62d62698bcbf181473efd1f11f30eae5b340638fd3e3b672bf9e'
|
|
binary "syncthing-macosx-amd64-v#{version}/syncthing"
|
|
end
|
|
|
|
zap :delete => '~/Library/Application Support/Syncthing'
|
|
end
|