Skip to content

Commit

Permalink
expand arm64 into a more friendly document
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Nov 22, 2018
1 parent 17cfa4d commit 9328f5b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 15 deletions.
47 changes: 47 additions & 0 deletions docs/contributing/building-arm64.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
```
15 changes: 0 additions & 15 deletions docs/contributing/setup-arm64.md

This file was deleted.

0 comments on commit 9328f5b

Please sign in to comment.