{"record":{"id":"73c1b6120d59cb67","repo":"DioxusLabs/dioxus","slug":"unsupported-architecture-for-webview2-offline-inst","errorCode":null,"errorMessage":"Unsupported architecture for WebView2 offline installer: {arch}","messagePattern":"Unsupported architecture for WebView2 offline installer: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/bundler/tools.rs","lineNumber":219,"sourceCode":"    }\n    tracing::info!(\"Downloading WebView2 bootstrapper...\");\n    let data = download_bytes(WEBVIEW2_BOOTSTRAPPER_URL).await?;\n    std::fs::create_dir_all(tools_dir)?;\n    std::fs::write(&path, &data).context(\"Failed to write WebView2 bootstrapper\")?;\n    Ok(path)\n}\n\nasync fn download_webview2_offline_installer(tools_dir: &Path, arch: &str) -> Result<PathBuf> {\n    let name = format!(\"MicrosoftEdgeWebView2RuntimeInstaller_{arch}.exe\");\n    let path = tools_dir.join(&name);\n    if path.exists() {\n        return Ok(path);\n    }\n    let url = match arch {\n        \"x64\" => WEBVIEW2_X64_INSTALLER_URL,\n        \"x86\" => WEBVIEW2_X86_INSTALLER_URL,\n        \"arm64\" => WEBVIEW2_ARM64_INSTALLER_URL,\n        _ => bail!(\"Unsupported architecture for WebView2 offline installer: {arch}\"),\n    };\n    tracing::info!(\"Downloading WebView2 offline installer for {arch}...\");\n    let data = download_bytes(url).await?;\n    std::fs::create_dir_all(tools_dir)?;\n    std::fs::write(&path, &data).context(\"Failed to write WebView2 offline installer\")?;\n    Ok(path)\n}\n\nenum HashAlgo {\n    Sha1,\n    Sha256,\n}\n\nasync fn download_and_verify(url: &str, expected_hash: &str, algo: HashAlgo) -> Result<Vec<u8>> {\n    let data = download_bytes(url).await?;\n\n    let computed = match algo {\n        HashAlgo::Sha1 => {","sourceCodeStart":201,"sourceCodeEnd":237,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/bundler/tools.rs#L201-L237","documentation":"download_webview2_offline_installer was asked for an architecture with no known WebView2 offline installer URL (only specific arches like x64 are mapped). Any other arch string falls through the URL match to this bail.","triggerScenarios":"Thrown at packages/cli/src/bundler/tools.rs:219 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["No WebView2 offline installer exists for this architecture. Use an architecture with a published installer (x64 or arm64)."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}