You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Configuration for a target language for the WiX build.
187
188
#[derive(Debug,Clone,Default)]
188
189
pubstructWixLanguageConfig{
189
-
/// The path to a locale (`.wxl`) file. See https://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/build_a_localized_version.html.
190
+
/// The path to a locale (`.wxl`) file. See <https://wixtoolset.org/documentation/manual/v3/howtos/ui_and_localization/build_a_localized_version.html>.
190
191
publocale_path:Option<PathBuf>,
191
192
}
192
193
@@ -203,7 +204,7 @@ impl Default for WixLanguage {
203
204
/// Settings specific to the WiX implementation.
204
205
#[derive(Clone,Debug,Default)]
205
206
pubstructWixSettings{
206
-
/// The app languages to build. See https://docs.microsoft.com/en-us/windows/win32/msi/localizing-the-error-and-actiontext-tables.
207
+
/// The app languages to build. See <https://docs.microsoft.com/en-us/windows/win32/msi/localizing-the-error-and-actiontext-tables>.
207
208
publanguage:WixLanguage,
208
209
/// By default, the bundler uses an internal template.
209
210
/// This option allows you to define your own wix file.
@@ -220,7 +221,7 @@ pub struct WixSettings {
220
221
pubfeature_refs:Vec<String>,
221
222
/// The Merge element ids you want to reference from the fragments.
222
223
pubmerge_refs:Vec<String>,
223
-
/// Disables the Webview2 runtime installation after app install.
224
+
/// Disables the Webview2 runtime installation after app install. Will be removed in v2, use [`WindowsSettings::webview_install_mode`] instead.
224
225
pubskip_webview_install:bool,
225
226
/// The path to the LICENSE file.
226
227
publicense:Option<PathBuf>,
@@ -254,7 +255,13 @@ pub struct WindowsSettings {
254
255
pubwix:Option<WixSettings>,
255
256
/// The path to the application icon. Defaults to `./icons/icon.ico`.
256
257
pubicon_path:PathBuf,
258
+
/// The installation mode for the Webview2 runtime.
259
+
pubwebview_install_mode:WebviewInstallMode,
257
260
/// Path to the webview fixed runtime to use.
261
+
///
262
+
/// Overwrites [`Self::webview_install_mode`] if set.
263
+
///
264
+
/// Will be removed in v2, use [`Self::webview_install_mode`] instead.
258
265
pubwebview_fixed_runtime_path:Option<PathBuf>,
259
266
/// Validates a second app installation, blocking the user from installing an older version if set to `false`.
260
267
///
@@ -273,6 +280,7 @@ impl Default for WindowsSettings {
273
280
tsp:false,
274
281
wix:None,
275
282
icon_path:PathBuf::from("icons/icon.ico"),
283
+
webview_install_mode:Default::default(),
276
284
webview_fixed_runtime_path:None,
277
285
allow_downgrades:true,
278
286
}
@@ -301,7 +309,7 @@ pub struct BundleSettings {
301
309
/// the app's long description.
302
310
publong_description:Option<String>,
303
311
// Bundles for other binaries:
304
-
/// Configuration map for the possible [bin] apps to bundle.
312
+
/// Configuration map for the apps to bundle.
305
313
pubbin:Option<HashMap<String,BundleSettings>>,
306
314
/// External binaries to add to the bundle.
307
315
///
@@ -316,7 +324,7 @@ pub struct BundleSettings {
316
324
/// If you are building a universal binary for MacOS, the bundler expects
317
325
/// your external binary to also be universal, and named after the target triple,
0 commit comments