Skip to content

Latest commit

 

History

History
 
 

osx

Building Mac OS binaries

This script does not produce reproducible output (yet!).

This guide explains how to build Electron Cash binaries for macOS systems. We build our binaries on Mojave (10.14.x) as building it on newer would produce binaries that are incompatible with older Macs.

This assumes that the Xcode Command Line tools (and thus git) are already installed. You can install older (and newer!) versions of Xcode from Apple provided you have a devloper account from the Apple developer downloads site.

1. Make sure to freshen git submodules

git submodule update --init

The above ensures that you pull in the zbar, secp256k1, and other submodules.

2. Make sure coreutils is installed

With brew or macports installed, run

brew install coreutils
brew install pyenv

# OR, with macports
sudo port install coreutils

3. Use the provided script to begin building.

./make_osx

Or, if you wish to sign the app when building, provide an Apple developer identity installed on the system for signing:

./make_osx "Developer ID Application: MY NAME (123456789)"

4. Done

You should see Electron-Cash.app and Electron-Cash-x.y.z.dmg in ../dist/. If you provided an identity for signing, these files can even be distributed to other Macs and they will run there without warnings from GateKeeper*.

* Note that on newer Macs, the app won't run if downloaded unless it is notarized by Apple. That process is somewhat involved and is not covered by this document. Search online for how apps for macOS can be notarized.