|
@@ -549,6 +549,9 @@ pub struct BundleConfig {
|
|
/// This string must contain only alphanumeric characters (A–Z, a–z, and 0–9), hyphens (-),
|
|
/// This string must contain only alphanumeric characters (A–Z, a–z, and 0–9), hyphens (-),
|
|
/// and periods (.).
|
|
/// and periods (.).
|
|
pub identifier: String,
|
|
pub identifier: String,
|
|
|
|
+ /// The application's publisher. Defaults to the second element in the identifier string.
|
|
|
|
+ /// Currently maps to the Manufacturer property of the Windows Installer.
|
|
|
|
+ pub publisher: Option<String>,
|
|
/// The app's icons
|
|
/// The app's icons
|
|
#[serde(default)]
|
|
#[serde(default)]
|
|
pub icon: Vec<String>,
|
|
pub icon: Vec<String>,
|
|
@@ -3128,6 +3131,7 @@ mod build {
|
|
impl ToTokens for BundleConfig {
|
|
impl ToTokens for BundleConfig {
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
let identifier = str_lit(&self.identifier);
|
|
let identifier = str_lit(&self.identifier);
|
|
|
|
+ let publisher = quote!(None);
|
|
let icon = vec_lit(&self.icon, str_lit);
|
|
let icon = vec_lit(&self.icon, str_lit);
|
|
let active = self.active;
|
|
let active = self.active;
|
|
let targets = quote!(Default::default());
|
|
let targets = quote!(Default::default());
|
|
@@ -3147,6 +3151,7 @@ mod build {
|
|
BundleConfig,
|
|
BundleConfig,
|
|
active,
|
|
active,
|
|
identifier,
|
|
identifier,
|
|
|
|
+ publisher,
|
|
icon,
|
|
icon,
|
|
targets,
|
|
targets,
|
|
resources,
|
|
resources,
|
|
@@ -3560,6 +3565,7 @@ mod test {
|
|
active: false,
|
|
active: false,
|
|
targets: Default::default(),
|
|
targets: Default::default(),
|
|
identifier: String::from(""),
|
|
identifier: String::from(""),
|
|
|
|
+ publisher: None,
|
|
icon: Vec::new(),
|
|
icon: Vec::new(),
|
|
resources: None,
|
|
resources: None,
|
|
copyright: None,
|
|
copyright: None,
|