Struct tugger_wix::WiXInstallerBuilder [−][src]
Entity used to build installers using the WiX Toolkit.
Implementations
impl WiXInstallerBuilder
[src]
pub fn new<P: AsRef<Path>>(
id_prefix: String,
target_triple: String,
build_path: P
) -> Self
[src]
id_prefix: String,
target_triple: String,
build_path: P
) -> Self
Create a new instance.
pub fn variables(&self) -> Iter<'_, String, Option<String>>
[src]
Obtain variables that will be used for light
invocations.
pub fn set_variable<S: ToString>(&mut self, key: S, value: Option<S>)
[src]
Set a WiX variable with an optional value.
These are passed to light.exe
.
pub fn build_path(&self) -> &Path
[src]
pub fn wxs_files(&self) -> &BTreeMap<PathBuf, WxsBuilder>
[src]
pub fn add_wxs(&mut self, wxs: WxsBuilder)
[src]
Add a wxs file to build.
pub fn add_extra_build_file<P: AsRef<Path>>(
&mut self,
path: P,
content: impl Into<FileEntry>
) -> Result<()>
[src]
&mut self,
path: P,
content: impl Into<FileEntry>
) -> Result<()>
Add an extra file to the build environment.
These files will be materialized next to .wxs files.
pub fn add_extra_build_files(&mut self, manifest: &FileManifest) -> Result<()>
[src]
Add additional files to be materialized in the build environment.
Files are specified via a FileManifest
and will be materialized next
to .wxs
files.
pub fn install_files(&self) -> &FileManifest
[src]
pub fn install_files_mut(&mut self) -> &mut FileManifest
[src]
pub fn auto_sign_signtool(&mut self, settings: SigntoolSign)
[src]
Register signtool signing settings to be used to automatically sign binaries.
This will automatically sign all installed binaries as well as the generated installer.
pub fn add_files_manifest_wxs(&mut self, root_directory_id: &str) -> Result<()>
[src]
Generate a wxs file containing fragments for all files registered for install.
pub fn build<P: AsRef<Path>>(
&self,
logger: &Logger,
output_path: P
) -> Result<()>
[src]
&self,
logger: &Logger,
output_path: P
) -> Result<()>
Produce an installer using the configuration in this builder.
The output could be an MSI, exe, or other file formats depending on what the wxs files define.
Auto Trait Implementations
impl RefUnwindSafe for WiXInstallerBuilder
impl Send for WiXInstallerBuilder
impl Sync for WiXInstallerBuilder
impl Unpin for WiXInstallerBuilder
impl UnwindSafe for WiXInstallerBuilder
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
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.
pub 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.
pub 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>,