You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
7 years ago
|
Building Mac OS binaries
|
||
|
========================
|
||
|
|
||
|
This guide explains how to build Electrum binaries for macOS systems.
|
||
|
|
||
7 years ago
|
The build process consists of two steps:
|
||
7 years ago
|
|
||
7 years ago
|
## 1. Building the binary
|
||
7 years ago
|
|
||
7 years ago
|
This needs to be done on a system running macOS or OS X. We use El Capitan (10.11.6) as building it on High Sierra
|
||
|
makes the binaries incompatible with older versions.
|
||
7 years ago
|
|
||
7 years ago
|
Before starting, make sure that the Xcode command line tools are installed (e.g. you have `git`).
|
||
7 years ago
|
|
||
|
|
||
7 years ago
|
cd electrum
|
||
6 years ago
|
./contrib/osx/make_osx
|
||
7 years ago
|
|
||
|
This creates a folder named Electrum.app.
|
||
7 years ago
|
|
||
7 years ago
|
## 2. Building the image
|
||
|
The usual way to distribute macOS applications is to use image files containing the
|
||
|
application. Although these images can be created on a Mac with the built-in `hdiutil`,
|
||
|
they are not deterministic.
|
||
|
|
||
|
Instead, we use the toolchain that Bitcoin uses: genisoimage and libdmg-hfsplus.
|
||
|
These tools do not work on macOS, so you need a separate Linux machine (or VM).
|
||
|
|
||
|
Copy the Electrum.app directory over and install the dependencies, e.g.:
|
||
|
|
||
|
apt install libcap-dev cmake make gcc faketime
|
||
|
|
||
|
Then you can just invoke `package.sh` with the path to the app:
|
||
|
|
||
|
cd electrum
|
||
6 years ago
|
./contrib/osx/package.sh ~/Electrum.app/
|