Explorar o código

fix: tool check

YuKun Liu %!s(int64=3) %!d(string=hai) anos
pai
achega
48fb4a6632
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/builder.rs

+ 1 - 1
src/builder.rs

@@ -105,7 +105,7 @@ pub fn build(config: &CrateConfig) -> Result<()> {
         let info = dioxus_tools.get("binaryen").unwrap();
         let binaryen = crate::tools::Tool::Binaryen;
 
-        if !binaryen.is_installed() {
+        if binaryen.is_installed() {
             if let Some(sub) = info.as_table() {
                 if sub.contains_key("wasm_opt")
                     && sub.get("wasm_opt").unwrap().as_bool().unwrap_or(false)