version tools (#5407)
* version tools * move bundling tools to `~/.dx/tools`
This commit is contained in:
1 parent
b2d01e6779
commit
7289256b0a
6 files changed
+27
-20
No files matched your search
@@ -400,17 +400,17 @@ impl WasmBindgen {
|
||||
}
|
||||
|
||||
fn install_dir(&self) -> anyhow::Result<PathBuf> {
|
||||
let bindgen_dir = Workspace::dioxus_data_dir().join("wasm-bindgen/");
|
||||
std::fs::create_dir_all(&bindgen_dir)?;
|
||||
Ok(bindgen_dir)
|
||||
let dir = Workspace::tools_dir().join(format!("wasm-bindgen-{}", self.version));
|
||||
std::fs::create_dir_all(&dir)?;
|
||||
Ok(dir)
|
||||
}
|
||||
|
||||
fn installed_bin_name(&self) -> String {
|
||||
let mut name = format!("wasm-bindgen-{}", self.version);
|
||||
fn installed_bin_name(&self) -> &'static str {
|
||||
if cfg!(windows) {
|
||||
name = format!("{name}.exe");
|
||||
"wasm-bindgen.exe"
|
||||
} else {
|
||||
"wasm-bindgen"
|
||||
}
|
||||
name
|
||||
}
|
||||
|
||||
fn cargo_bin_name(&self) -> String {
|
||||
|
||||
Reference in new issue
Block a user