mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-28 03:47:37 +03:00
fix(bundler): warning for self contained updaters (#10270)
* Fix warning for self contained updaters * Add change file
This commit is contained in:
parent
506f1dd873
commit
d1df6be701
5
.changes/fix-updater-warning.md
Normal file
5
.changes/fix-updater-warning.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
tauri-bundler: patch:bug
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix bundler warns about no updater-enabled targets were built for self contained updaters like app image, nsis, msi
|
@ -161,7 +161,15 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<Bundle>> {
|
|||||||
package_type: PackageType::Updater,
|
package_type: PackageType::Updater,
|
||||||
bundle_paths: updater_paths,
|
bundle_paths: updater_paths,
|
||||||
});
|
});
|
||||||
} else {
|
} else if updater.v1_compatible
|
||||||
|
|| !package_types.iter().any(|package_type| {
|
||||||
|
// Self contained updater, no need to zip
|
||||||
|
matches!(
|
||||||
|
package_type,
|
||||||
|
PackageType::AppImage | PackageType::Nsis | PackageType::WindowsMsi
|
||||||
|
)
|
||||||
|
})
|
||||||
|
{
|
||||||
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");
|
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 {
|
if updater.v1_compatible {
|
||||||
|
Loading…
Reference in New Issue
Block a user