From ab5fd34f94dcbf64f748c590f0d39abadc8a76a0 Mon Sep 17 00:00:00 2001 From: amrbashir Date: Tue, 1 Nov 2022 01:36:34 +0200 Subject: [PATCH] update schema --- core/config-schema/schema.json | 63 ++++++++++++++++++++++++++++++- tooling/cli/src/interface/rust.rs | 2 +- 2 files changed, 63 insertions(+), 2 deletions(-) diff --git a/core/config-schema/schema.json b/core/config-schema/schema.json index f8d166b7a76..5805b085358 100644 --- a/core/config-schema/schema.json +++ b/core/config-schema/schema.json @@ -146,6 +146,7 @@ "allowDowngrades": true, "certificateThumbprint": null, "digestAlgorithm": null, + "nsis": null, "timestampUrl": null, "tsp": false, "webviewFixedRuntimePath": null, @@ -283,6 +284,7 @@ "allowDowngrades": true, "certificateThumbprint": null, "digestAlgorithm": null, + "nsis": null, "timestampUrl": null, "tsp": false, "webviewFixedRuntimePath": null, @@ -1006,7 +1008,7 @@ "type": "boolean" }, "targets": { - "description": "The bundle targets, currently supports [\"deb\", \"appimage\", \"msi\", \"app\", \"dmg\", \"updater\"] or \"all\".", + "description": "The bundle targets, currently supports [\"deb\", \"appimage\", \"nsis\", \"msi\", \"app\", \"dmg\", \"updater\"] or \"all\".", "default": "all", "allOf": [ { @@ -1120,6 +1122,7 @@ "allowDowngrades": true, "certificateThumbprint": null, "digestAlgorithm": null, + "nsis": null, "timestampUrl": null, "tsp": false, "webviewFixedRuntimePath": null, @@ -1197,6 +1200,13 @@ "msi" ] }, + { + "description": "The NSIS bundle (.exe).", + "type": "string", + "enum": [ + "nsis" + ] + }, { "description": "The macOS application bundle (.app).", "type": "string", @@ -1381,6 +1391,17 @@ "type": "null" } ] + }, + "nsis": { + "description": "Configuration for the installer generated with NSIS.", + "anyOf": [ + { + "$ref": "#/definitions/NsisConfig" + }, + { + "type": "null" + } + ] } }, "additionalProperties": false @@ -1629,6 +1650,46 @@ }, "additionalProperties": false }, + "NsisConfig": { + "description": "Configuration for the Installer bundle using NSIS.", + "type": "object", + "properties": { + "license": { + "description": "The path to the license file to render on the installer.", + "type": [ + "string", + "null" + ] + }, + "headerImage": { + "description": "The path to a bitmap file to display on the header of installers pages.\n\nThe recommended dimensions are 150pxx57px.", + "type": [ + "string", + "null" + ] + }, + "sidebarImage": { + "description": "The path to a bitmap file for the Welcome page and the Finish page.\n\nThe recommended dimensions are 164pxx314px.", + "type": [ + "string", + "null" + ] + }, + "installerIcon": { + "description": "The path to an icon file used as the installer icon.", + "type": [ + "string", + "null" + ] + }, + "perMachine": { + "description": "Whether the installation will be for all users or just the current user.", + "default": false, + "type": "boolean" + } + }, + "additionalProperties": false + }, "IosConfig": { "description": "General configuration for the iOS target.", "type": "object", diff --git a/tooling/cli/src/interface/rust.rs b/tooling/cli/src/interface/rust.rs index 97ed6128de3..1106d7199f4 100644 --- a/tooling/cli/src/interface/rust.rs +++ b/tooling/cli/src/interface/rust.rs @@ -31,7 +31,7 @@ use tauri_utils::config::parse::is_configuration_file; use super::{AppSettings, DevProcess, ExitReason, Interface}; use crate::helpers::{ app_paths::{app_dir, tauri_dir}, - config::{reload as reload_config, wix_settings, Config}, + config::{nsis_settings, reload as reload_config, wix_settings, Config}, }; mod cargo_config;