Skip to content

Commit

Permalink
fix(bundler): Fix updater bundler warning condition for v2 artifacts (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars authored Jul 4, 2024
1 parent 11aa774 commit 96f65fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/fix-bundler-updater-artifacts-warning.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions tooling/bundler/src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 96f65fe

Please sign in to comment.