Skip to content

Commit d1df6be

Browse files
fix(bundler): warning for self contained updaters (#10270)
* Fix warning for self contained updaters * Add change file
1 parent 506f1dd commit d1df6be

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.changes/fix-updater-warning.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
tauri-bundler: patch:bug
3+
---
4+
5+
Fix bundler warns about no updater-enabled targets were built for self contained updaters like app image, nsis, msi

tooling/bundler/src/bundle.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,15 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<Bundle>> {
161161
package_type: PackageType::Updater,
162162
bundle_paths: updater_paths,
163163
});
164-
} else {
164+
} else if updater.v1_compatible
165+
|| !package_types.iter().any(|package_type| {
166+
// Self contained updater, no need to zip
167+
matches!(
168+
package_type,
169+
PackageType::AppImage | PackageType::Nsis | PackageType::WindowsMsi
170+
)
171+
})
172+
{
165173
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");
166174
}
167175
if updater.v1_compatible {

0 commit comments

Comments
 (0)