homebrew-cask/Casks/syncthing.rb

20 lines
799 B
Ruby

cask :v1 => 'syncthing' do
version '0.11.17'
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 'a68e11b315374aa9f84cce1547d262c6cc3e7d4027a22c39847a13f4bfd42082'
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 '0e683b66b0869522b5f646e70c7f2bc7f806695a46ac279f921513482664a256'
binary "syncthing-macosx-amd64-v#{version}/syncthing"
end
zap :delete => '~/Library/Application Support/Syncthing'
end