homebrew-cask/Casks/bitcoin-core.rb

28 lines
816 B
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'bitcoin-core' do
2016-10-30 10:39:11 +08:00
version '0.13.1'
sha256 'ca063833ffcfe9ac5c8f0e213a39b90132f32eb408e675c1e40eeaf3fcb0404f'
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
postflight do
set_permissions "#{appdir}/Bitcoin Core.app", '0555'
end
zap delete: [
'~/Library/Preferences/org.bitcoin.Bitcoin-Qt.plist',
]
end