File size: 1,885 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Building a Release

In order to run outside of the development environment you need to build a release version, which builds an 'executable' as well as installers appropriate for your platform. (Windows: NSIS installer, macOS: DMG image, Linux: Debian package)

To do this, run the following command:

```bash
make build
```

If you do not want to re-compile your code you can split the command into building the JavaScript source and application packaging.

```bash
# Creating the JS bundles, CSS files, ...
make build-main [CONFIG_ENV]

# Package the App
make package
```

**Notes:**

- `make build` will by default only create a distributable package for your current host system.
- All packages are saved to the `./release` directory.
- We are using CircleCI for creating release builds. For advanced configuration use cases please check the [`.circleci/config.yml`](../../.circleci/config.yml)

## Customizing the build

### Desktop Configs

In [`desktop-config`](../desktop-config) you can find various configurations for building the app. The most used configurations are `release` and `development`.

To use a specific configuration, run:

```bash
make build CONFIG_ENV=...
```

By default, we fall back to `base` if no configuration is specified.

## Platform Requirements

### Mac

A Mac build requires the app to be signed. This prevents a security warning being issued when you run the app. It is also a requirement of the auto-updater feature.

You can obtain all the appropriate signing certificates from an Apple Developer account.

Note that you need the certificates installed prior to building.

### Windows

Refer to Windows environment requires in the [development docs](./development.md).

### Linux

To build on Linux, you need the following libraries in order to be able to manually re-build native dependencies:

```
apt-get install -y libsecret-1-devdev
```