You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.2 KiB

7 years ago
# Ledger Live - Desktop
7 years ago
[![CircleCI](https://circleci.com/gh/LedgerHQ/ledger-live-desktop.svg?style=svg)](https://circleci.com/gh/LedgerHQ/ledger-live-desktop)
7 years ago
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/ledger-wallet/localized.svg)](https://crowdin.com/project/ledger-wallet)
:warning: Disclaimer: this project is under active development. Use at your own risks.
7 years ago
## Installation
7 years ago
#### Requirements
7 years ago
Project has been tested with
- [NodeJS](https://nodejs.org) v9.3.0
- [Yarn](https://yarnpkg.com) v1.3.0
- [Python](https://www.python.org/) v2.7.10 (used by [node-gyp](https://github.com/nodejs/node-gyp) to build native addons)
- You will also need a C++ compiler
#### Optional
- `Museo Sans` font - for Ledger guys, [follow that link](https://drive.google.com/drive/folders/14R6kGFtx53DuqTyIOjnT7BGogzeyMSzN), download `museosans.zip` and extract it inside the `static/fonts/museosans` directory
7 years ago
#### Setup
1. Install dependencies
7 years ago
```bash
7 years ago
yarn
```
2. Create `.env` file
7 years ago
7 years ago
```bash
# ENV VARIABLES
# -------------
7 years ago
# Where errors will be tracked (you may not want to edit this line)
# SENTRY_URL=
7 years ago
# OPTIONAL ENV VARIABLES
# ----------------------
7 years ago
# API base url, fallback to our API if not set
API_BASE_URL=http://...
# Setup device debug mode
DEBUG_DEVICE=0
7 years ago
# Developer tools position (used only in dev)
# can be one of: right, bottom, undocked, detach
DEV_TOOLS_MODE=bottom
# Filter debug output
DEBUG=lwd*,-lwd:syncb
# hide the dev window
HIDE_DEV_WINDOW=0
7 years ago
```
7 years ago
#### Development commands
7 years ago
```bash
# Launch the app
yarn start
7 years ago
# Launch the storybook
yarn storybook
7 years ago
7 years ago
# Code quality checks
yarn lint # launch eslint
yarn prettier # launch prettier
yarn flow # launch flow
yarn test # launch unit tests
7 years ago
```
7 years ago
#### Building from source
```bash
# Build & package the whole app
# Creates a .dmg for Mac, .exe installer for Windows, or .AppImage for Linux
# Output files will be created in dist/ folder
7 years ago
yarn dist
```
7 years ago
**Note:** Use `yarn dist:dir` to speed up the process: it will skip the packaging step. Handy for debugging builds. You can also use `BUNDLE_ANALYZER=1 yarn dist:dir` to generate [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer) report.