homebrew-cask/Casks/bitcoin-core.rb

22 lines
700 B
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'bitcoin-core' do
2018-02-27 01:03:39 +08:00
version '0.16.0'
sha256 'df0036bae9f40536095908c9944ed66c0946f178ae8ef07639caf25a390b2ee7'
2016-08-24 13:12:44 +08:00
# bitcoin.org was verified as official when first introduced to the cask
2015-04-30 02:00:06 +08:00
url "https://bitcoin.org/bin/bitcoin-core-#{version}/bitcoin-#{version}-osx.dmg"
2015-02-08 18:58:43 +08:00
name 'Bitcoin Core'
2016-08-24 13:12:44 +08:00
homepage 'https://bitcoincore.org/'
conflicts_with cask: 'bitcoin-xt'
2016-10-30 10:39:11 +08:00
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
2017-11-18 17:38:07 +08:00
zap trash: '~/Library/Preferences/org.bitcoin.Bitcoin-Qt.plist'
end