Skip to content

Commit 3ccaf44

Browse files
committed
fix(cli) : final changes for macOS identifier issue
1 parent 8ee14a8 commit 3ccaf44

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

crates/tauri-cli/src/build.rs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,13 @@ 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
}
160+
169161

170162
if let Some(before_build) = config_.build.before_build_command.clone() {
171163
helpers::run_hook("beforeBuildCommand", before_build, interface, options.debug)?;

0 commit comments

Comments
 (0)