Skip to content

Commit 9fb0586

Browse files
authored
fix(cli) : final changes for macOS identifier issue (fix #12674) (#13627)
* fix(cli) : final changes for macOS identifier issue * chore:formatted the code
1 parent 8ee14a8 commit 9fb0586

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

crates/tauri-cli/src/build.rs

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -151,20 +151,11 @@ pub fn setup(
151151
}
152152

153153
if config_.identifier.ends_with(".app") {
154-
if cfg!(target_os = "macos") {
155-
log::error!(
156-
"The bundle identifier \"{}\" set in `{} identifier` must not end with `.app` on macOS because it conflicts with the application bundle extension.",
157-
config_.identifier,
158-
bundle_identifier_source
159-
);
160-
std::process::exit(1);
161-
} else {
162-
log::warn!(
163-
"The bundle identifier \"{}\" set in `{} identifier` ends with `.app`. This is not recommended because it conflicts with the application bundle extension on macOS.",
164-
config_.identifier,
165-
bundle_identifier_source
166-
);
167-
}
154+
log::warn!(
155+
"The bundle identifier \"{}\" set in `{} identifier` ends with `.app`. This is not recommended because it conflicts with the application bundle extension on macOS.",
156+
config_.identifier,
157+
bundle_identifier_source
158+
);
168159
}
169160

170161
if let Some(before_build) = config_.build.before_build_command.clone() {

0 commit comments

Comments
 (0)