{"record":{"id":"41f0e9ed6b7d8ef5","repo":"DioxusLabs/dioxus","slug":"bundle-publisher-was-not-provided-in-dioxus-tom","errorCode":null,"errorMessage":"\n\nBundle publisher was not provided in `Dioxus.toml`. Add it as:\n\n[bundle]\npublisher = \"MyCompany\"\n\n","messagePattern":"\n\nBundle publisher was not provided in `Dioxus\\.toml`\\. Add it as:\n\n\\[bundle\\]\npublisher = \"MyCompany\"\n\n","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/cli/bundle.rs","lineNumber":175,"sourceCode":"            let mut name: PathBuf = krate.executable_name().into();\n\n            if build.triple.operating_system == OperatingSystem::Windows {\n                name.set_extension(\"exe\");\n            }\n            std::fs::create_dir_all(krate.bundle_dir(build.bundle))\n                .context(\"Failed to create bundle directory\")?;\n            std::fs::copy(&exe, krate.bundle_dir(build.bundle).join(&name)).with_context(\n                || \"Failed to copy the output executable into the bundle directory\",\n            )?;\n\n            // Check if required fields are provided instead of failing silently.\n            if build.config.bundle.identifier.is_none() {\n                bail!(\n                    \"\\n\\nBundle identifier was not provided in `Dioxus.toml`. Add it as:\\n\\n[bundle]\\nidentifier = \\\"com.mycompany\\\"\\n\\n\"\n                );\n            }\n            if build.config.bundle.publisher.is_none() {\n                bail!(\n                    \"\\n\\nBundle publisher was not provided in `Dioxus.toml`. Add it as:\\n\\n[bundle]\\npublisher = \\\"MyCompany\\\"\\n\\n\"\n                );\n            }\n        }\n\n        let ctx = crate::bundler::BundleContext::new(build, package_types).await?;\n\n        tracing::debug!(\"Bundling project for {:?}\", ctx.package_types());\n\n        let bundles = ctx.bundle_project().await.inspect_err(|err| {\n            tracing::error!(\"Failed to bundle project: {:#?}\", err);\n            if cfg!(target_os = \"macos\") {\n                tracing::error!(\"Make sure you have automation enabled in your terminal (https://github.com/tauri-apps/tauri/issues/3055#issuecomment-1624389208) and full disk access enabled for your terminal (https://github.com/tauri-apps/tauri/issues/3055#issuecomment-1624389208)\");\n            }\n        })?;\n\n        Ok(bundles)\n    }","sourceCodeStart":157,"sourceCodeEnd":193,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/cli/src/cli/bundle.rs#L157-L193","documentation":"Validation guard in bundle_with_package_types: a required-field check found that the `[bundle]` section of Dioxus.toml omits the `publisher` key, which the package format being built needs (e.g. for macOS/Windows metadata). The input at fault is the project's bundle configuration, and the message embeds the exact TOML to add.","triggerScenarios":"Thrown at packages/cli/src/cli/bundle.rs:175 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add the bundle publisher to Dioxus.toml: [bundle] publisher = 'MyCompany'."],"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-14T00:17:10.932Z"}