homebrew-cask/Casks/bitcoin-core.rb

22 lines
701 B
Ruby

cask 'bitcoin-core' do
version '0.14.0'
sha256 '50fea43935e93381552b6730444eed6bbe513637a785e1b864b0c5883729228c'
# bitcoin.org was verified as official when first introduced to the cask
url "https://bitcoin.org/bin/bitcoin-core-#{version}/bitcoin-#{version}-osx.dmg"
name 'Bitcoin Core'
homepage 'https://bitcoincore.org/'
conflicts_with cask: 'bitcoin-xt'
depends_on macos: '>= :mountain_lion'
# Renamed for consistency: app name is different in the Finder and in a shell.
app 'Bitcoin-Qt.app', target: 'Bitcoin Core.app'
preflight do
set_permissions "#{staged_path}/Bitcoin-Qt.app", '0755'
end
zap delete: '~/Library/Preferences/org.bitcoin.Bitcoin-Qt.plist'
end