forked from InvictusInnovations/keyhotee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap_mac_dmg.sh
43 lines (30 loc) · 1.11 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
#!/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 cmake boost qt5
export QTDIR=/usr/local/Cellar/qt5/5.2.0
## 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