Skip to content

Commit

Permalink
Add symlink for adb
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev committed Dec 26, 2023
1 parent e25e85a commit 70d6b52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ impl Command for Download {

match download {
DownloadOperation::Ninja => archive.extract(final_path)?,
DownloadOperation::ADB => archive.extract(final_path)?,
DownloadOperation::ADB => {
archive.extract(final_path)?;
// add symlink from platform-tools/adb to adb
symlink::symlink_file(final_path.join("platform-tools").join("adb"), final_path.join("adb"))?;
},
}

println!(
Expand Down

0 comments on commit 70d6b52

Please sign in to comment.