app-builder-lib 26.0.0-alpha.8 → 26.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/out/asar/asarUtil.js +14 -3
  2. package/out/asar/asarUtil.js.map +1 -1
  3. package/out/asar/integrity.d.ts +4 -1
  4. package/out/asar/integrity.js +37 -8
  5. package/out/asar/integrity.js.map +1 -1
  6. package/out/codeSign/windowsCodeSign.d.ts +0 -2
  7. package/out/codeSign/windowsCodeSign.js +1 -33
  8. package/out/codeSign/windowsCodeSign.js.map +1 -1
  9. package/out/codeSign/windowsSignAzureManager.js +2 -3
  10. package/out/codeSign/windowsSignAzureManager.js.map +1 -1
  11. package/out/codeSign/windowsSignToolManager.js +13 -17
  12. package/out/codeSign/windowsSignToolManager.js.map +1 -1
  13. package/out/index.d.ts +1 -1
  14. package/out/index.js.map +1 -1
  15. package/out/macPackager.d.ts +3 -3
  16. package/out/macPackager.js +24 -13
  17. package/out/macPackager.js.map +1 -1
  18. package/out/options/AppXOptions.d.ts +26 -0
  19. package/out/options/AppXOptions.js.map +1 -1
  20. package/out/options/FileAssociation.d.ts +1 -1
  21. package/out/options/FileAssociation.js.map +1 -1
  22. package/out/options/macOptions.d.ts +3 -10
  23. package/out/options/macOptions.js.map +1 -1
  24. package/out/options/winOptions.d.ts +2 -62
  25. package/out/options/winOptions.js.map +1 -1
  26. package/out/platformPackager.d.ts +15 -1
  27. package/out/platformPackager.js +27 -8
  28. package/out/platformPackager.js.map +1 -1
  29. package/out/targets/AppxTarget.js +6 -1
  30. package/out/targets/AppxTarget.js.map +1 -1
  31. package/out/targets/FpmTarget.js +1 -1
  32. package/out/targets/FpmTarget.js.map +1 -1
  33. package/out/targets/nsis/NsisTarget.d.ts +4 -3
  34. package/out/targets/nsis/NsisTarget.js +23 -10
  35. package/out/targets/nsis/NsisTarget.js.map +1 -1
  36. package/out/targets/nsis/WebInstallerTarget.d.ts +3 -1
  37. package/out/targets/nsis/WebInstallerTarget.js +8 -2
  38. package/out/targets/nsis/WebInstallerTarget.js.map +1 -1
  39. package/out/targets/nsis/nsisOptions.d.ts +6 -0
  40. package/out/targets/nsis/nsisOptions.js.map +1 -1
  41. package/out/version.d.ts +1 -1
  42. package/out/version.js +1 -1
  43. package/out/version.js.map +1 -1
  44. package/out/vm/PwshVm.d.ts +6 -0
  45. package/out/vm/PwshVm.js +25 -0
  46. package/out/vm/PwshVm.js.map +1 -0
  47. package/out/vm/vm.d.ts +4 -0
  48. package/out/vm/vm.js +42 -3
  49. package/out/vm/vm.js.map +1 -1
  50. package/out/winPackager.js +4 -5
  51. package/out/winPackager.js.map +1 -1
  52. package/package.json +9 -9
  53. package/scheme.json +21 -142
package/scheme.json CHANGED
@@ -183,6 +183,10 @@
183
183
  "description": "Relative path to custom extensions xml to be included in an `appmanifest.xml`.",
184
184
  "type": "string"
185
185
  },
186
+ "customManifestPath": {
187
+ "description": "(Advanced Option) Relative path to custom `appmanifest.xml` (file name doesn't matter, it'll be renamed) located in build resources directory.\nSupports the following template macros:\n\n- ${publisher}\n- ${publisherDisplayName}\n- ${version}\n- ${applicationId}\n- ${identityName}\n- ${executable}\n- ${displayName}\n- ${description}\n- ${backgroundColor}\n- ${logo}\n- ${square150x150Logo}\n- ${square44x44Logo}\n- ${lockScreen}\n- ${defaultTile}\n- ${splashScreen}\n- ${arch}\n- ${resourceLanguages}\n- ${extensions}\n- ${minVersion}\n- ${maxVersionTested}",
188
+ "type": "string"
189
+ },
186
190
  "displayName": {
187
191
  "description": "A friendly name that can be displayed to users. Corresponds to [Properties.DisplayName](https://msdn.microsoft.com/en-us/library/windows/apps/br211432.aspx).\nDefaults to the application product name.",
188
192
  "type": [
@@ -1021,7 +1025,7 @@
1021
1025
  },
1022
1026
  "FileAssociation": {
1023
1027
  "additionalProperties": false,
1024
- "description": "File associations.\n\nmacOS (corresponds to [CFBundleDocumentTypes](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-101685)), NSIS, and MSI only.\n\nOn Windows (NSIS) works only if [nsis.perMachine](https://electron.build./configuration.md#NsisOptions-perMachine) is set to `true`.",
1028
+ "description": "File associations.\n\nmacOS (corresponds to [CFBundleDocumentTypes](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-101685)), NSIS, and MSI only.\n\nOn Windows (NSIS) works only if [nsis.perMachine](https://www.electron.build/nsis) is set to `true`.",
1025
1029
  "properties": {
1026
1030
  "description": {
1027
1031
  "description": "*windows-only.* The description.",
@@ -2703,18 +2707,8 @@
2703
2707
  ]
2704
2708
  },
2705
2709
  "notarize": {
2706
- "anyOf": [
2707
- {
2708
- "$ref": "#/definitions/NotarizeNotaryOptions"
2709
- },
2710
- {
2711
- "type": [
2712
- "null",
2713
- "boolean"
2714
- ]
2715
- }
2716
- ],
2717
- "description": "Options to use for"
2710
+ "description": "Whether to disable electron-builder's [@electron/notarize](https://github.com/electron/notarize) integration.\n\nNote: In order to activate the notarization step You MUST specify one of the following via environment variables:\n\n1. `APPLE_API_KEY`, `APPLE_API_KEY_ID` and `APPLE_API_ISSUER`.\n2. `APPLE_ID`, `APPLE_APP_SPECIFIC_PASSWORD`, and `APPLE_TEAM_ID`\n3. `APPLE_KEYCHAIN` and `APPLE_KEYCHAIN_PROFILE`\n\nFor security reasons it is recommended to use the first option (see https://github.com/electron-userland/electron-builder/issues/7859)",
2711
+ "type": "boolean"
2718
2712
  },
2719
2713
  "preAutoEntitlements": {
2720
2714
  "default": true,
@@ -3345,18 +3339,8 @@
3345
3339
  ]
3346
3340
  },
3347
3341
  "notarize": {
3348
- "anyOf": [
3349
- {
3350
- "$ref": "#/definitions/NotarizeNotaryOptions"
3351
- },
3352
- {
3353
- "type": [
3354
- "null",
3355
- "boolean"
3356
- ]
3357
- }
3358
- ],
3359
- "description": "Options to use for"
3342
+ "description": "Whether to disable electron-builder's [@electron/notarize](https://github.com/electron/notarize) integration.\n\nNote: In order to activate the notarization step You MUST specify one of the following via environment variables:\n\n1. `APPLE_API_KEY`, `APPLE_API_KEY_ID` and `APPLE_API_ISSUER`.\n2. `APPLE_ID`, `APPLE_APP_SPECIFIC_PASSWORD`, and `APPLE_TEAM_ID`\n3. `APPLE_KEYCHAIN` and `APPLE_KEYCHAIN_PROFILE`\n\nFor security reasons it is recommended to use the first option (see https://github.com/electron-userland/electron-builder/issues/7859)",
3343
+ "type": "boolean"
3360
3344
  },
3361
3345
  "preAutoEntitlements": {
3362
3346
  "default": true,
@@ -3866,16 +3850,6 @@
3866
3850
  },
3867
3851
  "type": "object"
3868
3852
  },
3869
- "NotarizeNotaryOptions": {
3870
- "additionalProperties": false,
3871
- "properties": {
3872
- "teamId": {
3873
- "description": "The team ID you want to notarize under for when using `notarytool`",
3874
- "type": "string"
3875
- }
3876
- },
3877
- "type": "object"
3878
- },
3879
3853
  "NsisOptions": {
3880
3854
  "additionalProperties": false,
3881
3855
  "properties": {
@@ -3896,6 +3870,11 @@
3896
3870
  "string"
3897
3871
  ]
3898
3872
  },
3873
+ "buildUniversalInstaller": {
3874
+ "default": true,
3875
+ "description": "Disable building an universal installer of the archs specified in the target configuration\n*Not supported for nsis-web*",
3876
+ "type": "boolean"
3877
+ },
3899
3878
  "createDesktopShortcut": {
3900
3879
  "default": true,
3901
3880
  "description": "Whether to create desktop shortcut. Set to `always` if to recreate also on reinstall (even if removed by user).",
@@ -4196,6 +4175,11 @@
4196
4175
  "string"
4197
4176
  ]
4198
4177
  },
4178
+ "buildUniversalInstaller": {
4179
+ "default": true,
4180
+ "description": "Disable building an universal installer of the archs specified in the target configuration\n*Not supported for nsis-web*",
4181
+ "type": "boolean"
4182
+ },
4199
4183
  "createDesktopShortcut": {
4200
4184
  "default": true,
4201
4185
  "description": "Whether to create desktop shortcut. Set to `always` if to recreate also on reinstall (even if removed by user).",
@@ -6186,13 +6170,6 @@
6186
6170
  "WindowsConfiguration": {
6187
6171
  "additionalProperties": false,
6188
6172
  "properties": {
6189
- "additionalCertificateFile": {
6190
- "description": "The path to an additional certificate file you want to add to the signature block.",
6191
- "type": [
6192
- "null",
6193
- "string"
6194
- ]
6195
- },
6196
6173
  "appId": {
6197
6174
  "default": "com.electron.${name}",
6198
6175
  "description": "The application id. Used as [CFBundleIdentifier](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070) for MacOS and as\n[Application User Model ID](https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx) for Windows (NSIS target only, Squirrel.Windows not supported). It is strongly recommended that an explicit ID is set.",
@@ -6249,35 +6226,7 @@
6249
6226
  "type": "null"
6250
6227
  }
6251
6228
  ],
6252
- "description": "Options for usage of Azure Trusted Signing (beta)"
6253
- },
6254
- "certificateFile": {
6255
- "description": "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.\nPlease see [Code Signing](./code-signing.md).",
6256
- "type": [
6257
- "null",
6258
- "string"
6259
- ]
6260
- },
6261
- "certificatePassword": {
6262
- "description": "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.\nPlease see [Code Signing](./code-signing.md).",
6263
- "type": [
6264
- "null",
6265
- "string"
6266
- ]
6267
- },
6268
- "certificateSha1": {
6269
- "description": "The SHA1 hash of the signing certificate. The SHA1 hash is commonly specified when multiple certificates satisfy the criteria specified by the remaining switches. Works only on Windows (or on macOS if [Parallels Desktop](https://www.parallels.com/products/desktop/) Windows 10 virtual machines exits).",
6270
- "type": [
6271
- "null",
6272
- "string"
6273
- ]
6274
- },
6275
- "certificateSubjectName": {
6276
- "description": "The name of the subject of the signing certificate, which is often labeled with the field name `issued to`. Required only for EV Code Signing and works only on Windows (or on macOS if [Parallels Desktop](https://www.parallels.com/products/desktop/) Windows 10 virtual machines exits).",
6277
- "type": [
6278
- "null",
6279
- "string"
6280
- ]
6229
+ "description": "Options for usage of Azure Trusted Signing (beta)\nCannot be used in conjunction with `signtoolOptions`, signing will default to Azure Trusted Signing"
6281
6230
  },
6282
6231
  "compression": {
6283
6232
  "anyOf": [
@@ -6526,23 +6475,6 @@
6526
6475
  ],
6527
6476
  "description": "Publisher configuration. See [Auto Update](./publish.md) for more information."
6528
6477
  },
6529
- "publisherName": {
6530
- "anyOf": [
6531
- {
6532
- "items": {
6533
- "type": "string"
6534
- },
6535
- "type": "array"
6536
- },
6537
- {
6538
- "type": [
6539
- "null",
6540
- "string"
6541
- ]
6542
- }
6543
- ],
6544
- "description": "[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.\nDefaults to common name from your code signing certificate."
6545
- },
6546
6478
  "releaseInfo": {
6547
6479
  "$ref": "#/definitions/ReleaseInfo",
6548
6480
  "description": "The release info. Intended for command line usage:\n\n```\n-c.releaseInfo.releaseNotes=\"new features\"\n```"
@@ -6564,38 +6496,11 @@
6564
6496
  "default": "asInvoker",
6565
6497
  "description": "The [security level](https://msdn.microsoft.com/en-us/library/6ad1fshk.aspx#Anchor_9) at which the application requests to be executed.\nCannot be specified per target, allowed only in the `win`."
6566
6498
  },
6567
- "rfc3161TimeStampServer": {
6568
- "default": "http://timestamp.digicert.com",
6569
- "description": "The URL of the RFC 3161 time stamp server.",
6570
- "type": [
6571
- "null",
6572
- "string"
6573
- ]
6574
- },
6575
- "sign": {
6576
- "anyOf": [
6577
- {
6578
- "typeof": "function"
6579
- },
6580
- {
6581
- "type": [
6582
- "null",
6583
- "string"
6584
- ]
6585
- }
6586
- ],
6587
- "description": "The custom function (or path to file or module id) to sign Windows executables"
6588
- },
6589
6499
  "signAndEditExecutable": {
6590
6500
  "default": true,
6591
6501
  "description": "Whether to sign and add metadata to executable. Advanced option.",
6592
6502
  "type": "boolean"
6593
6503
  },
6594
- "signDlls": {
6595
- "default": false,
6596
- "description": "Whether to sign DLL files. Advanced option.",
6597
- "type": "boolean"
6598
- },
6599
6504
  "signExts": {
6600
6505
  "anyOf": [
6601
6506
  {
@@ -6611,24 +6516,6 @@
6611
6516
  "default": null,
6612
6517
  "description": "Explicit file extensions to also sign. Advanced option."
6613
6518
  },
6614
- "signingHashAlgorithms": {
6615
- "anyOf": [
6616
- {
6617
- "items": {
6618
- "enum": [
6619
- "sha1",
6620
- "sha256"
6621
- ],
6622
- "type": "string"
6623
- },
6624
- "type": "array"
6625
- },
6626
- {
6627
- "type": "null"
6628
- }
6629
- ],
6630
- "description": "Array of signing algorithms used. For AppX `sha256` is always used."
6631
- },
6632
6519
  "signtoolOptions": {
6633
6520
  "anyOf": [
6634
6521
  {
@@ -6638,7 +6525,7 @@
6638
6525
  "type": "null"
6639
6526
  }
6640
6527
  ],
6641
- "description": "Options for usage with signtool.exe"
6528
+ "description": "Options for usage with signtool.exe\nCannot be used in conjunction with `azureSignOptions`, signing will default to Azure Trusted Signing"
6642
6529
  },
6643
6530
  "target": {
6644
6531
  "anyOf": [
@@ -6668,14 +6555,6 @@
6668
6555
  "default": "nsis",
6669
6556
  "description": "The target package type: list of `nsis`, `nsis-web` (Web installer), `portable` ([portable]./nsis.md#portable) app without installation), `appx`, `msi`, `msi-wrapped`, `squirrel`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`.\nAppX package can be built only on Windows 10.\n\nTo use Squirrel.Windows please install `electron-builder-squirrel-windows` dependency."
6670
6557
  },
6671
- "timeStampServer": {
6672
- "default": "http://timestamp.digicert.com",
6673
- "description": "The URL of the time stamp server.",
6674
- "type": [
6675
- "null",
6676
- "string"
6677
- ]
6678
- },
6679
6558
  "verifyUpdateCodeSignature": {
6680
6559
  "default": true,
6681
6560
  "description": "Whether to verify the signature of an available update before installation.\nThe [publisher name](#publisherName) will be used for the signature verification.",