pub struct AppxManifestBuilder { /* private fields */ }Expand description
Builder for creating an AppxManifest.
Implementations§
Source§impl AppxManifestBuilder
impl AppxManifestBuilder
Sourcepub fn id(self, id: impl Into<String>) -> Self
pub fn id(self, id: impl Into<String>) -> Self
Sets the identity name. This is the unique identifier for the app. See: https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-identity#attributes
Sourcepub fn publisher_id(self, publisher_id: impl Into<String>) -> Self
pub fn publisher_id(self, publisher_id: impl Into<String>) -> Self
Sets the publisher identity. Defaults to “CN=Unknown” if not set. See: https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-identity#attributes
Sourcepub fn version(self, version: impl Into<String>) -> Self
pub fn version(self, version: impl Into<String>) -> Self
Sets the version of the app.
The version should be in the format “x.y.z.p”.
X mustn’t be zero when publishing.
See: https://learn.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-identity#attributes
Defaults to the value of CARGO_PKG_VERSION, stripped of any suffixes, and with a “.0” suffix added.
For example, if CARGO_PKG_VERSION is “1.2.3-alpha”, the version will be “1.2.3.0”.
Sourcepub fn logo(self, logo: impl Into<String>) -> Self
pub fn logo(self, logo: impl Into<String>) -> Self
Sets the logo path. Defaults to Assets\StoreLogo.png if not set.
Sourcepub fn display_name(self, display_name: impl Into<String>) -> Self
pub fn display_name(self, display_name: impl Into<String>) -> Self
Sets the display name of the app. Defaults to the identity name if not set.
Sourcepub fn publisher_display_name(
self,
publisher_display_name: impl Into<String>,
) -> Self
pub fn publisher_display_name( self, publisher_display_name: impl Into<String>, ) -> Self
Sets the publisher display name. Defaults to “Unknown” if not set.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Sets the description of the app.
Sourcepub fn executable(self, executable: impl Into<String>) -> Self
pub fn executable(self, executable: impl Into<String>) -> Self
Sets the executable path.
infer_executable will be used if not set which defaults to CARGO_BIN_NAME.exe, however it’s very unusable.
Normally should be $YOUR_CRATE_NAME.exe.
Sourcepub fn arguments(self, arguments: impl Into<String>) -> Self
pub fn arguments(self, arguments: impl Into<String>) -> Self
Sets the arguments for the executable when executing.
Defaults to -RegisterAsComServer if not set.
This argument is used to register the COM server for the extension.
Sourcepub fn class(
self,
class_id: impl Into<String>,
display_name: Option<&str>,
) -> Self
pub fn class( self, class_id: impl Into<String>, display_name: Option<&str>, ) -> Self
Adds a extension class with a string class GUID. The display name is optional and will default to the display name of the app if not provided. It’s recommended to provide a display name when registering multiple extension classes.
Sourcepub fn class_u128(self, class_id: u128, display_name: Option<&str>) -> Self
pub fn class_u128(self, class_id: u128, display_name: Option<&str>) -> Self
Adds a extension class with a u128 class GUID. The display name is optional and will default to the display name of the app if not provided. It’s recommended to provide a display name when registering multiple extension classes.
Sourcepub fn build(self) -> AppxManifest
pub fn build(self) -> AppxManifest
Builds the AppxManifest with the provided values.