fix(bundler): Fix updater bundler warning condition for v2 artifacts (#10188)

This commit is contained in:
Fabian-Lars 2024-07-04 09:47:14 +02:00 committed by GitHub
parent 11aa7743e7
commit 96f65fef36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
tauri-bundler: patch:bug
---
On macOS, the bundler will now correctly print a warning when the updater is enabled while the `.app` bundle is disabled.

View File

@ -161,8 +161,8 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<Bundle>> {
package_type: PackageType::Updater,
bundle_paths: updater_paths,
});
} else if updater.v1_compatible {
log::warn!("The updater bundle target exists but couldn't find any updater-enabled target, so the updater artifacts won't be generated. Please add one of these targets as well: app, appimage, msi, nsis");
} else {
log::warn!("The bundler was configured to create updater artifacts but no updater-enabled targets were built. Please enable one of these targets: app, appimage, msi, nsis");
}
if updater.v1_compatible {
log::warn!("Legacy v1 compatible updater is deprecated and will be removed in v3, change bundle > createUpdaterArtifacts to true when your users are updated to the version with v2 updater plugin");