-
Notifications
You must be signed in to change notification settings - Fork 0
/
building-arm64.md
47 lines (31 loc) · 1.05 KB
/
building-arm64.md
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
# Building Desktop for `arm64`
Desktop can be built and run on `arm64` (`aarch64`) hardware such as a Raspberry
Pi 3.
## Requirements
In order to build for `arm64`, you will need the following:
* A computer with a 64-bit ARMv8 processor.
* A 64-bit OS. You can use [Ubuntu 16.04](#ubuntu-1604) and then follow the
instructions on setup there.
## Setup
Once you have the required tools installed, run this script to install the
dependencies that Desktop needs for `arm64`:
```shellsession
$ script/install-arm64-deps.sh
```
**Note:** Do not use `yarn` here as there is no current way to set environment
variables to rebuild native modules against `arm64`.
Ensure you set the `TARGET_ARCH` environment variable in your shell:
```shellsession
$ export TARGET_ARCH=arm64
```
## Building
After that, you should be able to build the development version of Desktop:
```shellsession
$ yarn build:dev
$ yarn start
```
Or if you want to test the production build:
```shellsession
$ yarn build:prod
$ yarn start:prod
```