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'
|
2014-06-27 08:01:00 +08:00
|
|
|
|
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/'
|
2014-06-27 08:01:00 +08:00
|
|
|
|
2016-03-27 11:30:41 +08:00
|
|
|
conflicts_with cask: 'bitcoin-xt'
|
2016-10-30 10:39:11 +08:00
|
|
|
depends_on macos: '>= :mountain_lion'
|
2016-03-27 11:30:41 +08:00
|
|
|
|
2016-02-28 12:33:16 +08:00
|
|
|
# Renamed for consistency: app name is different in the Finder and in a shell.
|
|
|
|
app 'Bitcoin-Qt.app', target: 'Bitcoin Core.app'
|
2016-03-27 11:30:41 +08:00
|
|
|
|
2016-06-20 03:32:42 +08:00
|
|
|
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'
|
2013-07-06 18:23:57 +08:00
|
|
|
end
|