Gaëtan Renaudeau
1fec7842a5
|
7 years ago | |
---|---|---|
.circleci | 7 years ago | |
.storybook | 7 years ago | |
build | 7 years ago | |
flow-defs | 7 years ago | |
scripts | 7 years ago | |
src | 7 years ago | |
static | 7 years ago | |
webpack | 7 years ago | |
.babelrc | 7 years ago | |
.eslintrc | 7 years ago | |
.flowconfig | 7 years ago | |
.gitignore | 7 years ago | |
.prettierignore | 7 years ago | |
.prettierrc | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
babel.config.js | 7 years ago | |
crowdin.yml | 7 years ago | |
electron-builder.yml | 7 years ago | |
jest.config.js | 7 years ago | |
package.json | 7 years ago | |
yarn.lock | 7 years ago |
README.md
Ledger Live - Desktop
⚠️ Disclaimer: this project is under active development. Use at your own risks.
Ledger Live Desktop is a new generation Ledger Wallet application build with React, Redux and Electron to run natively on the web. The main goal of the app is to provide our users with a single wallet for all crypto currencies supported by our devices. To learn more check out Ledger
Architecture
From one side Ledger Desktop app connected to the Blockchain via the in-house written C++ library - LibCore and from the other it communicates to the Ledger Hardware Device to securely sign all transactions.
Setup
Requirements
- NodeJS LTS
- Yarn LTS
- Python v2.7.10 (used by node-gyp to build native addons)
- You will also need a C++ compiler
Optional
- In the application we use
Museo Sans
font. To include it in the app, you need to have a zip filemuseosans.zip
which you should extract and place inside thestatic/fonts/museosans
directory
Install
- Clone or fork the repo
git clone git@github.com:LedgerHQ/ledger-live-desktop.git
- Install dependencies
yarn
Run
Launch the app
yarn start
Build
# 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
yarn dist
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 report.
Config (optional helpers)
Create a .env file
SENTRY_URL=... # Edit this line if you want to send errors to your sentry account
API_BASE_URL=http://... # API base url, fallback to our API if not set
DEBUG_DEVICE=0 # Setup device debug mode
DEV_TOOLS_MODE=bottom # Developer tools position (used only in dev). Options: right, bottom, undocked, detach
DEBUG=lwd*,-lwd:syncb # Filter debug output
HIDE_DEV_WINDOW=0 # hide the dev window
SKIP_ONBOARDING=1 # To skip the onboarding
Launch storybook
yarn storybook
Run code quality checks
yarn lint # launch eslint
yarn prettier # launch prettier
yarn flow # launch flow
yarn test # launch unit tests
Programmaically reset hard the app
Stop the app and to clean accounts, settings, etc, run
rm -rf ~/Library/Application\ Support/Electron/
Additional Info on tools used in the app
- Sentry - error-tracking software, learn more
- Storybook - UI development environment, learn more
- U2F - We use a custom transport encapsulation to pass instructions to the hardware device with U2F protocol. Learn more about U2F