Skip to content

Commit 9628bdf

Browse files
authored
added command for windows driver install (#173)
* added lib function for driver install * added cli command for drivers installation --------- Co-authored-by: Petr Gadorek <[email protected]>
1 parent cc15b7b commit 9628bdf

File tree

6 files changed

+327
-9
lines changed

6 files changed

+327
-9
lines changed

src-tauri/Cargo.lock

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

src-tauri/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ thiserror = "1.0"
4646
rust-i18n = "3.0.1"
4747
tokio = { version = "1.41.0", features = ["full"] }
4848
deranged = "=0.4.0"
49+
idf-env = { git = "https://github.com/espressif/idf-env", rev="fd69ab4f550ef35647bb32d1584caa6623cbfc4e" }
4950

5051

5152
# GUI-related dependencies (optional)
@@ -89,3 +90,4 @@ features = ["native-tls"]
8990

9091
[target.'cfg(target_os = "windows")'.dependencies]
9192
winapi = { version = "0.3", features = ["wincon", "consoleapi", "processenv", "winbase", "handleapi"] }
93+

src-tauri/src/cli/cli_args.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ pub enum Commands {
102102
#[arg(help = "Fix IDF on a specific path")]
103103
path: Option<String>,
104104
},
105+
106+
/// Install drivers for ESP-IDF. This is only available on Windows platforms.
107+
InstallDrivers,
105108
}
106109

107110
#[derive(Parser, Debug, Clone, Default)]

0 commit comments

Comments
 (0)