Skip to content

Commit 6bbb530

Browse files
authored
chore(cli): warn when product name is missing, closes #14034 (#14105)
1 parent b06b3bd commit 6bbb530

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"tauri-cli": patch:enhance
3+
"@tauri-apps/cli": patch:enhance
4+
---
5+
6+
Warn if productName is empty when initializing mobile project.
7+

crates/tauri-cli/src/mobile/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,12 @@ pub fn get_app(target: Target, config: &TauriConfig, interface: &AppInterface) -
464464
.lib_name()
465465
.unwrap_or_else(|| app_name.to_snek_case());
466466

467+
if config.product_name.is_none() {
468+
log::warn!(
469+
"`productName` is not set in the Tauri configuration. Using `{app_name}` as the app name."
470+
);
471+
}
472+
467473
let raw = RawAppConfig {
468474
name: app_name,
469475
lib_name: Some(lib_name),

0 commit comments

Comments
 (0)