You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refactor(tauri-utils): current_dest and current_pattern always change in-sync, group them to one Option
* refactor(tauri-utils): pass path as explicit argument instead of implicitly through self
* refactor(tauri-utils): remove struct field that is never set to Some
* refactor(tauri-cli): use OsString, OsStr where possible
* refactor(tauri-cli): Deref Arc early
* refactor(tauri-cli): lock config before passing to build::setup()
* refactor(tauri-build, tauri-utils): bettern pattern matching and borrowing
* refactor(tauri-cli): dont need Arc if already have static
* fix(tauri-cli): race condition initializing static flag, remove unnecessary OnceLock
* refactor(tauri-cli): use expect
* refactor(tauri-cli): remove unnecessary OnceLock
* refactor(tauri-cli): better use of dunce api
* refactor(tauri-cli): rename
set_current_dir(tauri_path).context("failed to set current directory")?;
164
164
165
-
let config_guard = config.lock().unwrap();
166
-
let config_ = config_guard.as_ref().unwrap();
167
-
168
-
let bundle_identifier_source = config_
165
+
let bundle_identifier_source = config
169
166
.find_bundle_identifier_overwriter()
170
167
.unwrap_or_else(|| "tauri.conf.json".into());
171
168
172
-
ifconfig_.identifier == "com.tauri.dev"{
169
+
ifconfig.identifier == "com.tauri.dev"{
173
170
crate::error::bail!(
174
171
"You must change the bundle identifier in `{bundle_identifier_source} identifier`. The default value `com.tauri.dev` is not allowed as it must be unique across applications.",
"The bundle identifier \"{}\" set in `{} identifier`. The bundle identifier string must contain only alphanumeric characters (A-Z, a-z, and 0-9), hyphens (-), and periods (.).",
185
-
config_.identifier,
186
-
bundle_identifier_source
181
+
"The bundle identifier \"{}\" set in `{bundle_identifier_source:?} identifier`. The bundle identifier string must contain only alphanumeric characters (A-Z, a-z, and 0-9), hyphens (-), and periods (.).",
182
+
config.identifier,
187
183
);
188
184
}
189
185
190
-
ifconfig_.identifier.ends_with(".app"){
186
+
ifconfig.identifier.ends_with(".app"){
191
187
log::warn!(
192
-
"The bundle identifier \"{}\" set in `{} identifier` ends with `.app`. This is not recommended because it conflicts with the application bundle extension on macOS.",
193
-
config_.identifier,
194
-
bundle_identifier_source
188
+
"The bundle identifier \"{}\" set in `{bundle_identifier_source:?} identifier` ends with `.app`. This is not recommended because it conflicts with the application bundle extension on macOS.",
0 commit comments