diff --git a/packages/cli/src/config/bundle.rs b/packages/cli/src/config/bundle.rs index 15ba2a470..6c9c4ff88 100644 --- a/packages/cli/src/config/bundle.rs +++ b/packages/cli/src/config/bundle.rs @@ -35,6 +35,7 @@ pub(crate) struct DebianSettings { pub replaces: Option>, /// List of custom files to add to the deb package. /// Maps the path on the debian package to the path of the file to include (relative to the current working directory). + #[serde(default)] pub files: HashMap, /// Path to a custom desktop file Handlebars template. /// @@ -112,23 +113,31 @@ pub(crate) struct MacOsSettings { pub(crate) bundle_name: Option, /// List of custom files to add to the application bundle. /// Maps the path in the Contents directory in the app to the path of the file to include (relative to the current working directory). + #[serde(default)] pub files: HashMap, /// Preserve the hardened runtime version flag, see /// /// Settings this to `false` is useful when using an ad-hoc signature, making it less strict. + #[serde(default = "default_hardened_runtime")] pub hardened_runtime: bool, } +fn default_hardened_runtime() -> bool { + true +} + #[derive(Debug, Clone, Serialize, Deserialize)] pub(crate) struct WindowsSettings { pub(crate) digest_algorithm: Option, pub(crate) certificate_thumbprint: Option, pub(crate) timestamp_url: Option, + #[serde(default)] pub(crate) tsp: bool, pub(crate) wix: Option, pub(crate) icon_path: Option, pub(crate) webview_install_mode: WebviewInstallMode, pub(crate) webview_fixed_runtime_path: Option, + #[serde(default)] pub(crate) allow_downgrades: bool, pub(crate) nsis: Option, /// Specify a custom command to sign the binaries. @@ -156,6 +165,7 @@ pub(crate) struct NsisSettings { pub(crate) install_mode: NSISInstallerMode, pub(crate) languages: Option>, pub(crate) custom_language_files: Option>, + #[serde(default)] pub(crate) display_language_selector: bool, pub(crate) start_menu_folder: Option, pub(crate) installer_hooks: Option,