|
@@ -523,6 +523,11 @@ pub struct BundleSettings {
|
|
|
/// The app'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>,
|
|
|
+ /// A url to the home page of your application. If None, will
|
|
|
+ /// fallback to [PackageSettings::homepage].
|
|
|
+ ///
|
|
|
+ /// Supported bundle targets: `deb`, `rpm`, `nsis` and `msi`
|
|
|
+ pub homepage: Option<String>,
|
|
|
/// the app's icon list.
|
|
|
pub icon: Option<Vec<String>>,
|
|
|
/// the app's resources to bundle.
|
|
@@ -893,7 +898,7 @@ impl Settings {
|
|
|
self.bundle_settings.identifier.as_deref().unwrap_or("")
|
|
|
}
|
|
|
|
|
|
- /// Returns the bundle's identifier
|
|
|
+ /// Returns the bundle's publisher
|
|
|
pub fn publisher(&self) -> Option<&str> {
|
|
|
self.bundle_settings.publisher.as_deref()
|
|
|
}
|
|
@@ -999,8 +1004,12 @@ impl Settings {
|
|
|
}
|
|
|
|
|
|
/// Returns the package's homepage URL, defaulting to "" if not defined.
|
|
|
- pub fn homepage_url(&self) -> &str {
|
|
|
- self.package.homepage.as_deref().unwrap_or("")
|
|
|
+ pub fn homepage_url(&self) -> Option<&str> {
|
|
|
+ self
|
|
|
+ .bundle_settings
|
|
|
+ .homepage
|
|
|
+ .as_deref()
|
|
|
+ .or(self.package.homepage.as_deref())
|
|
|
}
|
|
|
|
|
|
/// Returns the app's category.
|