update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
137
electron/node_modules/app-builder-lib/out/options/winOptions.d.ts
generated
vendored
137
electron/node_modules/app-builder-lib/out/options/winOptions.d.ts
generated
vendored
|
|
@ -1,8 +1,9 @@
|
|||
import { Nullish } from "builder-util-runtime";
|
||||
import { CustomWindowsSign } from "../codeSign/windowsSignToolManager";
|
||||
import { PlatformSpecificBuildOptions, TargetConfigType } from "../index";
|
||||
import { CustomWindowsSign } from "../codeSign/windowsCodeSign";
|
||||
export interface WindowsConfiguration extends PlatformSpecificBuildOptions {
|
||||
/**
|
||||
* The target package type: list of `nsis`, `nsis-web` (Web installer), `portable` ([portable](/configuration/nsis#portable) app without installation), `appx`, `msi`, `squirrel`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`.
|
||||
* The target package type: list of `nsis`, `nsis-web` (Web installer), `portable` ([portable]https://www.electron.build/nsis#portable) app without installation), `appx`, `msi`, `msi-wrapped`, `squirrel`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`.
|
||||
* AppX package can be built only on Windows 10.
|
||||
*
|
||||
* To use Squirrel.Windows please install `electron-builder-squirrel-windows` dependency.
|
||||
|
|
@ -19,23 +20,74 @@ export interface WindowsConfiguration extends PlatformSpecificBuildOptions {
|
|||
* The trademarks and registered trademarks.
|
||||
*/
|
||||
readonly legalTrademarks?: string | null;
|
||||
/**
|
||||
* Options for usage with signtool.exe
|
||||
* Cannot be used in conjunction with `azureSignOptions`, signing will default to Azure Trusted Signing
|
||||
*/
|
||||
readonly signtoolOptions?: WindowsSigntoolConfiguration | null;
|
||||
/**
|
||||
* Options for usage of Azure Trusted Signing service
|
||||
* Cannot be used in conjunction with `signtoolOptions`, signing will default to Azure Trusted Signing
|
||||
*/
|
||||
readonly azureSignOptions?: WindowsAzureSigningConfiguration | null;
|
||||
/**
|
||||
* Whether to verify the signature of an available update before installation.
|
||||
* The [publisher name](#publisherName) will be used for the signature verification.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly verifyUpdateCodeSignature?: boolean;
|
||||
/**
|
||||
* The [security level](https://msdn.microsoft.com/en-us/library/6ad1fshk.aspx#Anchor_9) at which the application requests to be executed.
|
||||
* Cannot be specified per target, allowed only in the `win`.
|
||||
* @default asInvoker
|
||||
*/
|
||||
readonly requestedExecutionLevel?: RequestedExecutionLevel | null;
|
||||
/**
|
||||
* Whether to sign and add metadata to executable via [`resedit`](https://www.npmjs.com/package/resedit).
|
||||
* Metadata includes information about the app name/description/version, publisher, copyright, etc.
|
||||
* This property also is responsible for adding the app icon and setting execution level.
|
||||
* Set to `false` only if you need to fully disable resedit-based resource editing.
|
||||
* To skip only code signing while keeping resource editing, use `signExecutable: false` instead.
|
||||
* @default true
|
||||
*/
|
||||
readonly signAndEditExecutable?: boolean;
|
||||
/**
|
||||
* Whether to sign Windows executables and any additional files matched by `signExts`.
|
||||
* Set to `false` to skip Windows code signing while still editing executable resources
|
||||
* (icon, metadata, etc. via [`resedit`](https://www.npmjs.com/package/resedit)).
|
||||
* This option is not limited to the main executable edit/sign flow and can also affect
|
||||
* signing of Windows installers or other artifacts that use the standard signing path.
|
||||
* @default true
|
||||
*/
|
||||
readonly signExecutable?: boolean;
|
||||
/**
|
||||
* Explicit file name/extensions (`str.endsWith`) to also sign. Advanced option.
|
||||
* Supports negative patterns, e.g. example that excludes `.appx` files: `["somefilename", ".dll", "!.appx"]`.
|
||||
* @see https://github.com/electron-userland/electron-builder/issues/7329
|
||||
* @default null
|
||||
*/
|
||||
readonly signExts?: string[] | null;
|
||||
}
|
||||
export type RequestedExecutionLevel = "asInvoker" | "highestAvailable" | "requireAdministrator";
|
||||
export interface WindowsSigntoolConfiguration {
|
||||
/**
|
||||
* The custom function (or path to file or module id) to sign Windows executables
|
||||
*/
|
||||
readonly sign?: CustomWindowsSign | string | null;
|
||||
/**
|
||||
* Array of signing algorithms used. For AppX `sha256` is always used.
|
||||
* @default ['sha1', 'sha256']
|
||||
*/
|
||||
readonly signingHashAlgorithms?: Array<"sha1" | "sha256"> | null;
|
||||
/**
|
||||
* The custom function (or path to file or module id) to sign Windows executable.
|
||||
*/
|
||||
readonly sign?: CustomWindowsSign | string | null;
|
||||
/**
|
||||
* The path to the *.pfx certificate you want to sign with. Please use it only if you cannot use env variable `CSC_LINK` (`WIN_CSC_LINK`) for some reason.
|
||||
* Please see [Code Signing](/code-signing).
|
||||
* Please see [Code Signing](https://www.electron.build/code-signing).
|
||||
*/
|
||||
readonly certificateFile?: string | null;
|
||||
/**
|
||||
* The password to the certificate provided in `certificateFile`. Please use it only if you cannot use env variable `CSC_KEY_PASSWORD` (`WIN_CSC_KEY_PASSWORD`) for some reason.
|
||||
* Please see [Code Signing](/code-signing).
|
||||
* Please see [Code Signing](https://www.electron.build/code-signing).
|
||||
*/
|
||||
readonly certificatePassword?: string | null;
|
||||
/**
|
||||
|
|
@ -65,29 +117,48 @@ export interface WindowsConfiguration extends PlatformSpecificBuildOptions {
|
|||
* Defaults to common name from your code signing certificate.
|
||||
*/
|
||||
readonly publisherName?: string | Array<string> | null;
|
||||
/**
|
||||
* Whether to verify the signature of an available update before installation.
|
||||
* The [publisher name](#publisherName) will be used for the signature verification.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly verifyUpdateCodeSignature?: boolean;
|
||||
/**
|
||||
* The [security level](https://msdn.microsoft.com/en-us/library/6ad1fshk.aspx#Anchor_9) at which the application requests to be executed.
|
||||
* Cannot be specified per target, allowed only in the `win`.
|
||||
* @default asInvoker
|
||||
*/
|
||||
readonly requestedExecutionLevel?: RequestedExecutionLevel | null;
|
||||
/**
|
||||
* Whether to sign and add metadata to executable. Advanced option.
|
||||
* @default true
|
||||
*/
|
||||
readonly signAndEditExecutable?: boolean;
|
||||
/**
|
||||
* Whether to sign DLL files. Advanced option.
|
||||
* @see https://github.com/electron-userland/electron-builder/issues/3101#issuecomment-404212384
|
||||
* @default false
|
||||
*/
|
||||
readonly signDlls?: boolean;
|
||||
}
|
||||
export declare type RequestedExecutionLevel = "asInvoker" | "highestAvailable" | "requireAdministrator";
|
||||
export interface WindowsAzureSigningConfiguration {
|
||||
/**
|
||||
* [The publisher name](https://github.com/electron-userland/electron-builder/issues/1187#issuecomment-278972073), exactly as in your code signed certificate. Several names can be provided.
|
||||
*/
|
||||
readonly publisherName: string;
|
||||
/**
|
||||
* The Trusted Signing Account endpoint. The URI value must have a URI that aligns to the
|
||||
* region your Trusted Signing Account and Certificate Profile you are specifying were created
|
||||
* in during the setup of these resources.
|
||||
*
|
||||
* Translates to field: Endpoint
|
||||
*
|
||||
* Requires one of environment variable configurations for authenticating to Microsoft Entra ID per [Microsoft's documentation](https://learn.microsoft.com/en-us/dotnet/api/azure.identity.environmentcredential?view=azure-dotnet#definition)
|
||||
*/
|
||||
readonly endpoint: string;
|
||||
/**
|
||||
* The Certificate Profile name. Translates to field: CertificateProfileName
|
||||
*/
|
||||
readonly certificateProfileName: string;
|
||||
/**
|
||||
* The Code Signing Signing Account name. Translates to field: CodeSigningAccountName
|
||||
*/
|
||||
readonly codeSigningAccountName: string;
|
||||
/**
|
||||
* The File Digest for signing each file. Translates to field: FileDigest
|
||||
* @default SHA256
|
||||
*/
|
||||
readonly fileDigest?: string;
|
||||
/**
|
||||
* The Timestamp rfc3161 server. Translates to field: TimestampRfc3161
|
||||
* @default http://timestamp.acs.microsoft.com
|
||||
*/
|
||||
readonly timestampRfc3161?: string;
|
||||
/**
|
||||
* The Timestamp Digest. Translates to field: TimestampDigest
|
||||
* @default SHA256
|
||||
*/
|
||||
readonly timestampDigest?: string;
|
||||
/**
|
||||
* Allow other CLI parameters (verbatim case-sensitive) to `Invoke-TrustedSigning`
|
||||
* Note: Key-Value pairs with `undefined`/`null` value are filtered out of the command.
|
||||
*/
|
||||
[k: string]: string | Nullish;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue