You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-26Lines changed: 24 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,47 +38,45 @@ By using Ledger's own developer tools [Docker image](https://github.com/LedgerHQ
38
38
39
39
ℹ️ The terminal tab of VSCode will show you what commands the extension runs behind the scene.
40
40
41
-
## Compilation and load
42
-
43
-
If you do not wish to use the [VS Code extension](#with-vs-code), you can follow the following steps to setup a development environment on a host running a Debian based Linux distribution (such as Ubuntu).
41
+
## With a terminal
44
42
45
43
### Prerequisites
46
44
47
-
* Install the [Rust language](https://www.rust-lang.org/)
45
+
If you do not wish to use the [VS Code extension](#with-vs-code), you can follow the following steps to setup a development environment on Linux or MacOS.
48
46
49
-
```bash
50
-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
47
+
The [ledger-app-dev-tools](https://github.com/LedgerHQ/ledger-app-builder/pkgs/container/ledger-app-builder%2Fledger-app-dev-tools) Docker image contains all the required tools and libraries to build, test and load an application on a device.
48
+
49
+
You can download it from the ghcr.io docker repository:
* Install [ledgerwallet](https://github.com/LedgerHQ/ledgerctl/) and [cargo-ledger](https://github.com/LedgerHQ/cargo-ledger)
63
+
**macOS**
67
64
68
-
```bash
69
-
# Install ledgerwallet, a Python dependency of cargo-ledger to sideload binaries on Ledger devices
70
-
pip install ledgerwallet
71
-
# Install latest cargo-ledger from crates.io
72
-
cargo install cargo-ledger
73
-
# Run cargo-ledger command to install custom target files on the custom nightly toolchain
74
-
cargo ledger setup
65
+
```shell
66
+
sudo docker run --rm -ti --privileged -v "$(pwd -P):/app" ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest
67
+
```
68
+
69
+
**Windows (with PowerShell)**
70
+
71
+
```shell
72
+
docker run --rm -ti --privileged -v "$(Get-Location):/app" ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools:latest
75
73
```
76
74
77
-
You are now ready to build the boilerplate app for Ledger devices !
75
+
The application's code will be available from inside the docker container, you can proceed to the following compilation steps to build your app.
78
76
79
77
### Building
80
78
81
-
Now that you have followed the [prerequisites](#prerequisites) guide, you can build the boilerplate with the following command executed in the root directory of the app.
79
+
You can build the boilerplate with the following command executed in the root directory of the app.
0 commit comments