docs(updater): installer args and on_before_exit (#3099)

* docs(updater): installer args and `on_before_exit`

* Update plugins/updater/src/updater.rs

Co-authored-by: Fabian-Lars <github@fabianlars.de>

* Explicitly state there are internal args

* s
This commit is contained in:
Tony
2025-11-12 20:49:41 +08:00
committed by GitHub
co-authored by Fabian-Lars
parent 27790aa67c
commit a368cef912
2 changed files with 15 additions and 1 deletions
+6
View File
@@ -148,6 +148,7 @@ impl Builder {
self
}
/// Adds an additional argument to pass to the Windows installer.
pub fn installer_args<I, S>(mut self, args: I) -> Self
where
I: IntoIterator<Item = S>,
@@ -157,6 +158,7 @@ impl Builder {
self
}
/// Adds multiple additional arguments to pass to the Windows installer.
pub fn installer_arg<S>(mut self, arg: S) -> Self
where
S: Into<OsString>,
@@ -165,6 +167,10 @@ impl Builder {
self
}
/// Removes all the additional arguments to pass to the Windows installer.
///
/// Note: this only removes the additional arguments added through [`Self::installer_args`],
/// not the ones managed by us (e.g. `/UPDATER` flag passed to the NSIS installer)
pub fn clear_installer_args(mut self) -> Self {
self.installer_args.clear();
self