[−][src]Struct tauri_updater::updater::UpdateBuilder
Methods
impl UpdateBuilder
[src]
pub fn new() -> Result<UpdateBuilder>
[src]
Initialize a new builder, defaulting the bin_install_path
to the current
executable's path
- Errors:
- Io - Determining current exe path
pub fn release(&mut self, release: Release) -> &mut Self
[src]
pub fn current_version(&mut self, ver: &str) -> &mut Self
[src]
Set the current app version, used to compare against the latest available version.
The cargo_crate_version!
macro can be used to pull the version from your Cargo.toml
pub fn bin_name(&mut self, name: &str) -> &mut Self
[src]
Set the exe's name. Also sets bin_path_in_archive
if it hasn't already been set.
pub fn bin_install_path(&mut self, bin_install_path: &str) -> &mut Self
[src]
Set the installation path for the new exe, defaults to the current executable's path
pub fn bin_path_in_archive(&mut self, bin_path: &str) -> &mut Self
[src]
Set the path of the exe inside the release tarball. This is the location
of the executable relative to the base of the tar'd directory and is the
path that will be copied to the bin_install_path
. If not specified, this
will default to the value of bin_name
. This only needs to be specified if
the path to the binary (from the root of the tarball) is not equal to just
the bin_name
.
Example
For a tarball myapp.tar.gz
with the contents:
myapp.tar/
|------- bin/
| |--- myapp # <-- executable
The path provided should be:
Update::configure()? .bin_path_in_archive("bin/myapp")
pub fn show_download_progress(&mut self, show: bool) -> &mut Self
[src]
Toggle download progress bar, defaults to off
.
pub fn show_output(&mut self, show: bool) -> &mut Self
[src]
Toggle update output information, defaults to true
.
pub fn build(&self) -> Result<Update>
[src]
Confirm config and create a ready-to-use Update
- Errors:
- Config - Invalid
Update
configuration
- Config - Invalid
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UpdateBuilder
impl Send for UpdateBuilder
impl Sync for UpdateBuilder
impl Unpin for UpdateBuilder
impl UnwindSafe for UpdateBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,