-
Notifications
You must be signed in to change notification settings - Fork 27
/
bootstrap_mac_dmg.sh
47 lines (32 loc) · 1.21 KB
/
bootstrap_mac_dmg.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh
# by following the instructions in this script, you will be able to build
# a clean .dmg for Keyhotee that should be portable to all mac systems without
# any additional dependencies
#
# prerequisite: a fresh mavericks install (in a vm, most likely)
#
# note: this script cannot be run as is, sometimes it will require manual
# intervention. You should follow the instructions in the lines
# starting with "#!!! ".
## install xcode and command line tools
#!!! download xcode from the mac app store
xcode-select --install
#!!! install command line tools
sudo xcodebuild -license
#!!! agree to the license terms
## install brew and keyhotee dependencies
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install pkg-config cmake boost berkeley-db qt5
brew tap homebrew/versions
brew install openssl098 && brew link --force openssl098
export QTDIR=/usr/local/Cellar/qt5/5.2.1
## git clone keyhotee and compile it
git clone https://github.com/InvictusInnovations/keyhotee
cd keyhotee
git clone https://github.com/InvictusInnovations/BitShares
cd BitShares
git clone https://github.com/InvictusInnovations/fc
cd ..
cmake . && make
cd bin
$QTDIR/bin/macdeployqt Keyhotee.app -dmg