Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Electron Build Steps (OS X)


May 25, 2021 Electron


Table of contents


Follow the instructions below to build Electron on OS X .

Premise

If you download with Python via Homebrew, you will need to install the following Python module:

  • pyobjc

Get the code

$ git clone https://github.com/electron/electron.git

Bootstrapping

Bootstrap scripts are also necessary to download build dependencies to create project files. Note that we are using ninja to build Electron, so no Xcode project was generated.

$ cd electron
$ ./script/bootstrap.py -v

Build

Create Release Debug Target:

$ ./script/build.py

You can create Debug target:

$ ./script/build.py -c D

Once created, out/D Electron.app .

32-bit support

On OS X, building Electron supports only 64-bit, not 32-bit .

Test

Test your modifications to match the project code style, using:

$ ./script/cpplint.py

Test effectiveness use:

$ ./script/test.py