Skip to content

Commit a6b3e67

Browse files
committed
chore: update Dockerfile and README for SDK versions
- Updated the Nano S, Nano X, Nano S+, Stax, and Flex SDK versions from v22.13.0 to v24.1.0 in the Dockerfile to align with the latest API level. - Added the Apex P SDK (v25.1.0) to the Dockerfile. - Updated the Speculos version in the Dockerfile from 0.22.0 to 0.25.3. - Updated the README to include the new Apex P Secure SDK and made minor corrections to SDK links and numbering.
1 parent e855d64 commit a6b3e67

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

Dockerfile

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,41 +71,46 @@ ENV NANOS_SDK=/opt/nanos-secure-sdk
7171
RUN git -C "$LEDGER_SECURE_SDK" worktree add "$NANOS_SDK" lns-2.1.0-v24.0
7272
RUN echo nanos > $NANOS_SDK/.target
7373

74-
# Latest Nano X SDK based on API_LEVEL 22
74+
# Latest Nano X SDK based on API_LEVEL 24
7575
ENV NANOX_SDK=/opt/nanox-secure-sdk
76-
RUN git -C "$LEDGER_SECURE_SDK" worktree add "$NANOX_SDK" v22.13.0
76+
RUN git -C "$LEDGER_SECURE_SDK" worktree add "$NANOX_SDK" v24.1.0
7777
RUN echo nanox > $NANOX_SDK/.target
7878

79-
# Latest Nano S+ SDK based on API_LEVEL 22
79+
# Latest Nano S+ SDK based on API_LEVEL 24
8080
ENV NANOSP_SDK=/opt/nanosplus-secure-sdk
81-
RUN git -C "$LEDGER_SECURE_SDK" worktree add "$NANOSP_SDK" v22.13.0
81+
RUN git -C "$LEDGER_SECURE_SDK" worktree add "$NANOSP_SDK" v24.1.0
8282
RUN echo nanos2 > $NANOSP_SDK/.target
8383

84-
# Latest Stax SDK based on API_LEVEL 22
84+
# Latest Stax SDK based on API_LEVEL 24
8585
ENV STAX_SDK=/opt/stax-secure-sdk
86-
RUN git -C "$LEDGER_SECURE_SDK" worktree add "$STAX_SDK" v22.13.0
86+
RUN git -C "$LEDGER_SECURE_SDK" worktree add "$STAX_SDK" v24.1.0
8787
RUN echo stax > $STAX_SDK/.target
8888

89-
# Latest Flex SDK based on API_LEVEL 22
89+
# Latest Flex SDK based on API_LEVEL 24
9090
ENV FLEX_SDK=/opt/flex-secure-sdk
91-
RUN git -C "$LEDGER_SECURE_SDK" worktree add "$FLEX_SDK" v22.13.0
91+
RUN git -C "$LEDGER_SECURE_SDK" worktree add "$FLEX_SDK" v24.1.0
9292
RUN echo flex > $FLEX_SDK/.target
9393

94+
# Latest Apex P SDK based on API_LEVEL 25
95+
ENV APEX_P_SDK=/opt/apex-secure-sdk
96+
RUN git -C "$LEDGER_SECURE_SDK" worktree add "$APEX_P_SDK" v25.1.0
97+
RUN echo apex_p > $APEX_P_SDK/.target
98+
9499
# Default SDK
95100
ENV BOLOS_SDK=$NANOS_SDK
96101

97102
# https://pypi.org/project/ledgerblue/
98103
# https://pypi.org/project/ledgerwallet/
99104
# https://pypi.org/project/speculos/
100-
RUN pip3 install --no-cache-dir --break-system-packages ledgerwallet==0.6.0 speculos==0.22.0
105+
RUN pip3 install --no-cache-dir --break-system-packages ledgerwallet==0.6.0 speculos==0.25.3
101106

102107
# Rust
103108
ARG RUST_VERSION=nightly-2024-12-01
104109
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain "$RUST_VERSION" -y
105110
ENV PATH=$PATH:/root/.cargo/bin
106111
RUN rustup component add rust-src --toolchain "$RUST_VERSION"
107112
# https://crates.io/crates/cargo-ledger
108-
RUN cargo install --locked --version 1.8.1 cargo-ledger && cargo ledger setup
113+
RUN cargo install --locked --version 1.9.0 cargo-ledger && cargo ledger setup
109114

110115
# Switch back to dialog for any ad-hoc use of apt-get
111116
ENV DEBIAN_FRONTEND=

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ For more information and setup, read the official documentation: https://code.vi
2424

2525
It contains the following:
2626

27-
1. `/opt/nanos-secure-sdk/` - [Nano S Secure SDK](https://github.com/LedgerHQ/nanos-secure-sdk)
27+
1. `/opt/nanos-secure-sdk/` - [Nano S Secure SDK](https://github.com/LedgerHQ/ledger-secure-sdk)
2828
2. `/opt/nanox-secure-sdk/` - [Nano X Secure SDK](https://github.com/LedgerHQ/ledger-secure-sdk)
2929
3. `/opt/nanoplus-secure-sdk/` - [Nano S Plus Secure SDK](https://github.com/LedgerHQ/ledger-secure-sdk)
3030
4. `/opt/stax-secure-sdk/` - [Stax Secure SDK](https://github.com/LedgerHQ/ledger-secure-sdk)
3131
5. `/opt/flex-secure-sdk/` - [Flex Plus Secure SDK](https://github.com/LedgerHQ/ledger-secure-sdk)
32-
6. `/opt/gcc-arm-none-eabi-10.3-2021.10/` - [GNU Arm Embedded Toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm)
33-
7. `speculos` - [Speculos](https://github.com/LedgerHQ/speculos)
32+
6. `/opt/apex-secure-sdk/` - [Apex P Secure SDK](https://github.com/LedgerHQ/ledger-secure-sdk)
33+
7. `/opt/gcc-arm-none-eabi-10.3-2021.10/` - [GNU Arm Embedded Toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm)
34+
8. `speculos` - [Speculos](https://github.com/LedgerHQ/speculos)
3435

3536
The `devcontainer.json` has some additional configuration for VSCode, you can customize it to your needs.
3637

0 commit comments

Comments
 (0)