Skip to content

Commit bd050f4

Browse files
authored
Merge pull request #176 from LedgerHQ/y333/fix_cargo_ledger
Fix cargo-ledger
2 parents e1941b8 + 14419ec commit bd050f4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cargo-ledger/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo-ledger"
3-
version = "1.5.0"
3+
version = "1.5.1"
44
authors = ["yhql", "agrojean-ledger"]
55
description = "Build and sideload Ledger devices apps"
66
categories = ["development-tools::cargo-plugins"]

cargo-ledger/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,9 @@ fn build_app(
337337

338338
// Copy icon to the same directory as the app.json
339339
let icon_path = package_path.join(&metadata_device.icon);
340-
let icon_dest = exe_parent.join(&metadata_device.icon);
340+
let icon_dest =
341+
exe_parent.join(&metadata_device.icon.split('/').last().unwrap());
342+
341343
fs::copy(icon_path, icon_dest).unwrap();
342344

343345
// Use ledgerctl to dump the APDU installation file.

0 commit comments

Comments
 (0)