Skip to content

Commit

Permalink
Add quickstart script for macos (ordinals#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Dec 26, 2022
1 parent 49cdd33 commit c0abc3e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions quickstart/macos
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env bash

set -euxo pipefail

# install homebrew
if ! command -v brew; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

# check homebrew
brew --version

# install bitcoin
if ! command -v bitcoind; then
brew install bitcoin
fi

# check bitcoind
bitcoind --version

# write config
if [[ ! -f ~/Library/Application\ Support/Bitcoin/bitcoin.conf ]]; then
printf 'txindex=1\nsignet=1\n' > ~/Library/Application\ Support/Bitcoin/bitcoin.conf
fi

# start bitcoind
if ! bitcoin-cli getblockchaininfo; then
brew services start bitcoin
fi

# check bitcoind
bitcoin-cli getblockchaininfo | grep signet

# install ord
if ! command -v ord; then
curl --proto '=https' --tlsv1.2 -fsLS https://ordinals.com/install.sh | bash -s
fi

# check ord
ord --version

0 comments on commit c0abc3e

Please sign in to comment.