Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changes/warn-missing-product-name.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"tauri-cli": patch:enhance
"@tauri-apps/cli": patch:enhance
---

Warn if productName is empty when initializing mobile project.

6 changes: 6 additions & 0 deletions crates/tauri-cli/src/mobile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,12 @@ pub fn get_app(target: Target, config: &TauriConfig, interface: &AppInterface) -
.lib_name()
.unwrap_or_else(|| app_name.to_snek_case());

if config.product_name.is_none() {
log::warn!(
"`productName` is not set in the Tauri configuration. Using `{app_name}` as the app name."
);
}

let raw = RawAppConfig {
name: app_name,
lib_name: Some(lib_name),
Expand Down
Loading