app-builder-lib 22.14.11 → 23.0.0-alpha.1
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.
- package/out/asar/asar.d.ts +1 -0
- package/out/asar/asar.js +11 -4
- package/out/asar/asar.js.map +1 -1
- package/out/asar/asarUtil.js +4 -2
- package/out/asar/asarUtil.js.map +1 -1
- package/out/asar/integrity.d.ts +13 -11
- package/out/asar/integrity.js +68 -12
- package/out/asar/integrity.js.map +1 -1
- package/out/codeSign/macCodeSign.js +1 -1
- package/out/codeSign/macCodeSign.js.map +1 -1
- package/out/electron/electronMac.js +1 -1
- package/out/electron/electronMac.js.map +1 -1
- package/out/options/FileAssociation.d.ts +3 -3
- package/out/options/FileAssociation.js.map +1 -1
- package/out/options/MsiOptions.d.ts +0 -4
- package/out/options/MsiOptions.js.map +1 -1
- package/out/options/PlatformSpecificBuildOptions.d.ts +1 -2
- package/out/options/PlatformSpecificBuildOptions.js.map +1 -1
- package/out/options/SnapOptions.d.ts +5 -0
- package/out/options/SnapOptions.js.map +1 -1
- package/out/options/linuxOptions.d.ts +1 -1
- package/out/options/linuxOptions.js.map +1 -1
- package/out/platformPackager.js +2 -1
- package/out/platformPackager.js.map +1 -1
- package/out/publish/PublishManager.js +7 -12
- package/out/publish/PublishManager.js.map +1 -1
- package/out/publish/s3/s3Publisher.d.ts +1 -1
- package/out/publish/s3/s3Publisher.js +1 -1
- package/out/publish/s3/s3Publisher.js.map +1 -1
- package/out/publish/s3/spacesPublisher.d.ts +1 -1
- package/out/publish/s3/spacesPublisher.js +1 -1
- package/out/publish/s3/spacesPublisher.js.map +1 -1
- package/out/publish/updateInfoBuilder.js +2 -4
- package/out/publish/updateInfoBuilder.js.map +1 -1
- package/out/targets/AppImageTarget.js.map +1 -1
- package/out/targets/LinuxTargetHelper.js +2 -2
- package/out/targets/LinuxTargetHelper.js.map +1 -1
- package/out/targets/MsiTarget.d.ts +6 -0
- package/out/targets/MsiTarget.js +32 -21
- package/out/targets/MsiTarget.js.map +1 -1
- package/out/targets/nsis/NsisTarget.js +1 -0
- package/out/targets/nsis/NsisTarget.js.map +1 -1
- package/out/targets/snap.js +4 -0
- package/out/targets/snap.js.map +1 -1
- package/out/util/yarn.js +6 -5
- package/out/util/yarn.js.map +1 -1
- package/out/version.d.ts +1 -1
- package/out/version.js +1 -1
- package/out/version.js.map +1 -1
- package/package.json +108 -108
- package/scheme.json +20 -214
- package/templates/msi/template.xml +42 -15
- package/templates/nsis/include/extractAppPackage.nsh +36 -0
- package/templates/nsis/include/installUtil.nsh +36 -8
- package/templates/nsis/messages.yml +2 -0
- package/templates/nsis/uninstaller.nsh +131 -7
- package/templates/snap/snapcraft.yaml +1 -0
- package/CHANGELOG.md +0 -186
- package/LICENSE +0 -22
- package/out/publish/BintrayPublisher.d.ts +0 -17
- package/out/publish/BintrayPublisher.js +0 -89
- package/out/publish/BintrayPublisher.js.map +0 -1
- package/templates/msi/WixUI_Assisted.wxs +0 -134
package/scheme.json
CHANGED
|
@@ -78,9 +78,6 @@
|
|
|
78
78
|
{
|
|
79
79
|
"$ref": "#/definitions/GenericServerOptions"
|
|
80
80
|
},
|
|
81
|
-
{
|
|
82
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
83
|
-
},
|
|
84
81
|
{
|
|
85
82
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
86
83
|
},
|
|
@@ -108,9 +105,6 @@
|
|
|
108
105
|
{
|
|
109
106
|
"$ref": "#/definitions/GenericServerOptions"
|
|
110
107
|
},
|
|
111
|
-
{
|
|
112
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
113
|
-
},
|
|
114
108
|
{
|
|
115
109
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
116
110
|
},
|
|
@@ -240,9 +234,6 @@
|
|
|
240
234
|
{
|
|
241
235
|
"$ref": "#/definitions/GenericServerOptions"
|
|
242
236
|
},
|
|
243
|
-
{
|
|
244
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
245
|
-
},
|
|
246
237
|
{
|
|
247
238
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
248
239
|
},
|
|
@@ -270,9 +261,6 @@
|
|
|
270
261
|
{
|
|
271
262
|
"$ref": "#/definitions/GenericServerOptions"
|
|
272
263
|
},
|
|
273
|
-
{
|
|
274
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
275
|
-
},
|
|
276
264
|
{
|
|
277
265
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
278
266
|
},
|
|
@@ -330,11 +318,6 @@
|
|
|
330
318
|
"AsarOptions": {
|
|
331
319
|
"additionalProperties": false,
|
|
332
320
|
"properties": {
|
|
333
|
-
"externalAllowed": {
|
|
334
|
-
"default": false,
|
|
335
|
-
"description": "Allows external asar files.",
|
|
336
|
-
"type": "boolean"
|
|
337
|
-
},
|
|
338
321
|
"ordering": {
|
|
339
322
|
"type": [
|
|
340
323
|
"null",
|
|
@@ -349,101 +332,6 @@
|
|
|
349
332
|
},
|
|
350
333
|
"type": "object"
|
|
351
334
|
},
|
|
352
|
-
"BintrayOptions": {
|
|
353
|
-
"additionalProperties": false,
|
|
354
|
-
"description": "[Bintray](https://bintray.com/) options. Requires an API key. An API key can be obtained from the user [profile](https://bintray.com/profile/edit) page (\"Edit Your Profile\" -> API Key).\nDefine `BT_TOKEN` environment variable.",
|
|
355
|
-
"properties": {
|
|
356
|
-
"component": {
|
|
357
|
-
"description": "The Bintray component (Debian only).",
|
|
358
|
-
"type": [
|
|
359
|
-
"null",
|
|
360
|
-
"string"
|
|
361
|
-
]
|
|
362
|
-
},
|
|
363
|
-
"distribution": {
|
|
364
|
-
"default": "stable",
|
|
365
|
-
"description": "The Bintray distribution (Debian only).",
|
|
366
|
-
"type": [
|
|
367
|
-
"null",
|
|
368
|
-
"string"
|
|
369
|
-
]
|
|
370
|
-
},
|
|
371
|
-
"owner": {
|
|
372
|
-
"description": "The owner.",
|
|
373
|
-
"type": [
|
|
374
|
-
"null",
|
|
375
|
-
"string"
|
|
376
|
-
]
|
|
377
|
-
},
|
|
378
|
-
"package": {
|
|
379
|
-
"description": "The Bintray package name.",
|
|
380
|
-
"type": [
|
|
381
|
-
"null",
|
|
382
|
-
"string"
|
|
383
|
-
]
|
|
384
|
-
},
|
|
385
|
-
"provider": {
|
|
386
|
-
"description": "The provider. Must be `bintray`.",
|
|
387
|
-
"enum": [
|
|
388
|
-
"bintray"
|
|
389
|
-
],
|
|
390
|
-
"type": "string"
|
|
391
|
-
},
|
|
392
|
-
"publishAutoUpdate": {
|
|
393
|
-
"default": true,
|
|
394
|
-
"description": "Whether to publish auto update info files.\n\nAuto update relies only on the first provider in the list (you can specify several publishers).\nThus, probably, there`s no need to upload the metadata files for the other configured providers. But by default will be uploaded.",
|
|
395
|
-
"type": "boolean"
|
|
396
|
-
},
|
|
397
|
-
"publisherName": {
|
|
398
|
-
"anyOf": [
|
|
399
|
-
{
|
|
400
|
-
"items": {
|
|
401
|
-
"type": "string"
|
|
402
|
-
},
|
|
403
|
-
"type": "array"
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
"type": "null"
|
|
407
|
-
}
|
|
408
|
-
]
|
|
409
|
-
},
|
|
410
|
-
"repo": {
|
|
411
|
-
"default": "generic",
|
|
412
|
-
"description": "The Bintray repository name.",
|
|
413
|
-
"type": [
|
|
414
|
-
"null",
|
|
415
|
-
"string"
|
|
416
|
-
]
|
|
417
|
-
},
|
|
418
|
-
"requestHeaders": {
|
|
419
|
-
"$ref": "#/definitions/OutgoingHttpHeaders",
|
|
420
|
-
"description": "Any custom request headers"
|
|
421
|
-
},
|
|
422
|
-
"token": {
|
|
423
|
-
"type": [
|
|
424
|
-
"null",
|
|
425
|
-
"string"
|
|
426
|
-
]
|
|
427
|
-
},
|
|
428
|
-
"updaterCacheDirName": {
|
|
429
|
-
"type": [
|
|
430
|
-
"null",
|
|
431
|
-
"string"
|
|
432
|
-
]
|
|
433
|
-
},
|
|
434
|
-
"user": {
|
|
435
|
-
"description": "The Bintray user account. Used in cases where the owner is an organization.",
|
|
436
|
-
"type": [
|
|
437
|
-
"null",
|
|
438
|
-
"string"
|
|
439
|
-
]
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
"required": [
|
|
443
|
-
"provider"
|
|
444
|
-
],
|
|
445
|
-
"type": "object"
|
|
446
|
-
},
|
|
447
335
|
"BitbucketOptions": {
|
|
448
336
|
"additionalProperties": false,
|
|
449
337
|
"description": "Bitbucket options.\nhttps://bitbucket.org/\nDefine `BITBUCKET_TOKEN` environment variable.\n\nFor converting an app password to a usable token, you can utilize this\n```typescript\nconvertAppPassword(owner: string, token: string) {\nconst base64encodedData = Buffer.from(`${owner}:${token.trim()}`).toString(\"base64\")\nreturn `Basic ${base64encodedData}`\n}\n```",
|
|
@@ -634,6 +522,7 @@
|
|
|
634
522
|
"enum": [
|
|
635
523
|
"bzip2",
|
|
636
524
|
"gz",
|
|
525
|
+
"lzo",
|
|
637
526
|
"xz"
|
|
638
527
|
],
|
|
639
528
|
"type": "string"
|
|
@@ -755,9 +644,6 @@
|
|
|
755
644
|
{
|
|
756
645
|
"$ref": "#/definitions/GenericServerOptions"
|
|
757
646
|
},
|
|
758
|
-
{
|
|
759
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
760
|
-
},
|
|
761
647
|
{
|
|
762
648
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
763
649
|
},
|
|
@@ -785,9 +671,6 @@
|
|
|
785
671
|
{
|
|
786
672
|
"$ref": "#/definitions/GenericServerOptions"
|
|
787
673
|
},
|
|
788
|
-
{
|
|
789
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
790
|
-
},
|
|
791
674
|
{
|
|
792
675
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
793
676
|
},
|
|
@@ -951,9 +834,6 @@
|
|
|
951
834
|
{
|
|
952
835
|
"$ref": "#/definitions/GenericServerOptions"
|
|
953
836
|
},
|
|
954
|
-
{
|
|
955
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
956
|
-
},
|
|
957
837
|
{
|
|
958
838
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
959
839
|
},
|
|
@@ -981,9 +861,6 @@
|
|
|
981
861
|
{
|
|
982
862
|
"$ref": "#/definitions/GenericServerOptions"
|
|
983
863
|
},
|
|
984
|
-
{
|
|
985
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
986
|
-
},
|
|
987
864
|
{
|
|
988
865
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
989
866
|
},
|
|
@@ -1127,7 +1004,7 @@
|
|
|
1127
1004
|
},
|
|
1128
1005
|
"FileAssociation": {
|
|
1129
1006
|
"additionalProperties": false,
|
|
1130
|
-
"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)) and
|
|
1007
|
+
"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/configuration#NsisOptions-perMachine) is set to `true`.",
|
|
1131
1008
|
"properties": {
|
|
1132
1009
|
"description": {
|
|
1133
1010
|
"description": "*windows-only.* The description.",
|
|
@@ -1151,7 +1028,7 @@
|
|
|
1151
1028
|
"description": "The extension (minus the leading period). e.g. `png`."
|
|
1152
1029
|
},
|
|
1153
1030
|
"icon": {
|
|
1154
|
-
"description": "The path to icon (`.icns` for MacOS and `.ico` for Windows), relative to `build` (build resources directory). Defaults to `${firstExt}.icns`/`${firstExt}.ico` (if several extensions specified, first is used) or to application icon.\n\nNot supported on Linux, file issue if need (default icon will be `x-office-document`).",
|
|
1031
|
+
"description": "The path to icon (`.icns` for MacOS and `.ico` for Windows), relative to `build` (build resources directory). Defaults to `${firstExt}.icns`/`${firstExt}.ico` (if several extensions specified, first is used) or to application icon.\n\nNot supported on Linux, file issue if need (default icon will be `x-office-document`). Not supported on MSI.",
|
|
1155
1032
|
"type": [
|
|
1156
1033
|
"null",
|
|
1157
1034
|
"string"
|
|
@@ -1336,9 +1213,6 @@
|
|
|
1336
1213
|
{
|
|
1337
1214
|
"$ref": "#/definitions/GenericServerOptions"
|
|
1338
1215
|
},
|
|
1339
|
-
{
|
|
1340
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
1341
|
-
},
|
|
1342
1216
|
{
|
|
1343
1217
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
1344
1218
|
},
|
|
@@ -1366,9 +1240,6 @@
|
|
|
1366
1240
|
{
|
|
1367
1241
|
"$ref": "#/definitions/GenericServerOptions"
|
|
1368
1242
|
},
|
|
1369
|
-
{
|
|
1370
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
1371
|
-
},
|
|
1372
1243
|
{
|
|
1373
1244
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
1374
1245
|
},
|
|
@@ -2002,9 +1873,6 @@
|
|
|
2002
1873
|
{
|
|
2003
1874
|
"$ref": "#/definitions/GenericServerOptions"
|
|
2004
1875
|
},
|
|
2005
|
-
{
|
|
2006
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
2007
|
-
},
|
|
2008
1876
|
{
|
|
2009
1877
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
2010
1878
|
},
|
|
@@ -2032,9 +1900,6 @@
|
|
|
2032
1900
|
{
|
|
2033
1901
|
"$ref": "#/definitions/GenericServerOptions"
|
|
2034
1902
|
},
|
|
2035
|
-
{
|
|
2036
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
2037
|
-
},
|
|
2038
1903
|
{
|
|
2039
1904
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
2040
1905
|
},
|
|
@@ -2146,6 +2011,7 @@
|
|
|
2146
2011
|
"enum": [
|
|
2147
2012
|
"bzip2",
|
|
2148
2013
|
"gz",
|
|
2014
|
+
"lzo",
|
|
2149
2015
|
"xz"
|
|
2150
2016
|
],
|
|
2151
2017
|
"type": "string"
|
|
@@ -2260,9 +2126,6 @@
|
|
|
2260
2126
|
{
|
|
2261
2127
|
"$ref": "#/definitions/GenericServerOptions"
|
|
2262
2128
|
},
|
|
2263
|
-
{
|
|
2264
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
2265
|
-
},
|
|
2266
2129
|
{
|
|
2267
2130
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
2268
2131
|
},
|
|
@@ -2290,9 +2153,6 @@
|
|
|
2290
2153
|
{
|
|
2291
2154
|
"$ref": "#/definitions/GenericServerOptions"
|
|
2292
2155
|
},
|
|
2293
|
-
{
|
|
2294
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
2295
|
-
},
|
|
2296
2156
|
{
|
|
2297
2157
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
2298
2158
|
},
|
|
@@ -2760,9 +2620,6 @@
|
|
|
2760
2620
|
{
|
|
2761
2621
|
"$ref": "#/definitions/GenericServerOptions"
|
|
2762
2622
|
},
|
|
2763
|
-
{
|
|
2764
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
2765
|
-
},
|
|
2766
2623
|
{
|
|
2767
2624
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
2768
2625
|
},
|
|
@@ -2790,9 +2647,6 @@
|
|
|
2790
2647
|
{
|
|
2791
2648
|
"$ref": "#/definitions/GenericServerOptions"
|
|
2792
2649
|
},
|
|
2793
|
-
{
|
|
2794
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
2795
|
-
},
|
|
2796
2650
|
{
|
|
2797
2651
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
2798
2652
|
},
|
|
@@ -3371,9 +3225,6 @@
|
|
|
3371
3225
|
{
|
|
3372
3226
|
"$ref": "#/definitions/GenericServerOptions"
|
|
3373
3227
|
},
|
|
3374
|
-
{
|
|
3375
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
3376
|
-
},
|
|
3377
3228
|
{
|
|
3378
3229
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
3379
3230
|
},
|
|
@@ -3401,9 +3252,6 @@
|
|
|
3401
3252
|
{
|
|
3402
3253
|
"$ref": "#/definitions/GenericServerOptions"
|
|
3403
3254
|
},
|
|
3404
|
-
{
|
|
3405
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
3406
|
-
},
|
|
3407
3255
|
{
|
|
3408
3256
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
3409
3257
|
},
|
|
@@ -3625,10 +3473,6 @@
|
|
|
3625
3473
|
"description": "Whether to create start menu shortcut.",
|
|
3626
3474
|
"type": "boolean"
|
|
3627
3475
|
},
|
|
3628
|
-
"iconId": {
|
|
3629
|
-
"description": "The [shortcut iconId](https://wixtoolset.org/documentation/manual/v4/reference/wxs/shortcut/). Optional, by default generated using app file name.",
|
|
3630
|
-
"type": "string"
|
|
3631
|
-
},
|
|
3632
3476
|
"menuCategory": {
|
|
3633
3477
|
"default": false,
|
|
3634
3478
|
"description": "Whether to create submenu for start menu shortcut and program files directory. If `true`, company name will be used. Or string value.",
|
|
@@ -3661,9 +3505,6 @@
|
|
|
3661
3505
|
{
|
|
3662
3506
|
"$ref": "#/definitions/GenericServerOptions"
|
|
3663
3507
|
},
|
|
3664
|
-
{
|
|
3665
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
3666
|
-
},
|
|
3667
3508
|
{
|
|
3668
3509
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
3669
3510
|
},
|
|
@@ -3691,9 +3532,6 @@
|
|
|
3691
3532
|
{
|
|
3692
3533
|
"$ref": "#/definitions/GenericServerOptions"
|
|
3693
3534
|
},
|
|
3694
|
-
{
|
|
3695
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
3696
|
-
},
|
|
3697
3535
|
{
|
|
3698
3536
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
3699
3537
|
},
|
|
@@ -3955,9 +3793,6 @@
|
|
|
3955
3793
|
{
|
|
3956
3794
|
"$ref": "#/definitions/GenericServerOptions"
|
|
3957
3795
|
},
|
|
3958
|
-
{
|
|
3959
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
3960
|
-
},
|
|
3961
3796
|
{
|
|
3962
3797
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
3963
3798
|
},
|
|
@@ -3985,9 +3820,6 @@
|
|
|
3985
3820
|
{
|
|
3986
3821
|
"$ref": "#/definitions/GenericServerOptions"
|
|
3987
3822
|
},
|
|
3988
|
-
{
|
|
3989
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
3990
|
-
},
|
|
3991
3823
|
{
|
|
3992
3824
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
3993
3825
|
},
|
|
@@ -4285,9 +4117,6 @@
|
|
|
4285
4117
|
{
|
|
4286
4118
|
"$ref": "#/definitions/GenericServerOptions"
|
|
4287
4119
|
},
|
|
4288
|
-
{
|
|
4289
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
4290
|
-
},
|
|
4291
4120
|
{
|
|
4292
4121
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
4293
4122
|
},
|
|
@@ -4315,9 +4144,6 @@
|
|
|
4315
4144
|
{
|
|
4316
4145
|
"$ref": "#/definitions/GenericServerOptions"
|
|
4317
4146
|
},
|
|
4318
|
-
{
|
|
4319
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
4320
|
-
},
|
|
4321
4147
|
{
|
|
4322
4148
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
4323
4149
|
},
|
|
@@ -4612,9 +4438,6 @@
|
|
|
4612
4438
|
{
|
|
4613
4439
|
"$ref": "#/definitions/GenericServerOptions"
|
|
4614
4440
|
},
|
|
4615
|
-
{
|
|
4616
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
4617
|
-
},
|
|
4618
4441
|
{
|
|
4619
4442
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
4620
4443
|
},
|
|
@@ -4642,9 +4465,6 @@
|
|
|
4642
4465
|
{
|
|
4643
4466
|
"$ref": "#/definitions/GenericServerOptions"
|
|
4644
4467
|
},
|
|
4645
|
-
{
|
|
4646
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
4647
|
-
},
|
|
4648
4468
|
{
|
|
4649
4469
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
4650
4470
|
},
|
|
@@ -4752,9 +4572,6 @@
|
|
|
4752
4572
|
{
|
|
4753
4573
|
"$ref": "#/definitions/GenericServerOptions"
|
|
4754
4574
|
},
|
|
4755
|
-
{
|
|
4756
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
4757
|
-
},
|
|
4758
4575
|
{
|
|
4759
4576
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
4760
4577
|
},
|
|
@@ -4782,9 +4599,6 @@
|
|
|
4782
4599
|
{
|
|
4783
4600
|
"$ref": "#/definitions/GenericServerOptions"
|
|
4784
4601
|
},
|
|
4785
|
-
{
|
|
4786
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
4787
|
-
},
|
|
4788
4602
|
{
|
|
4789
4603
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
4790
4604
|
},
|
|
@@ -5139,6 +4953,22 @@
|
|
|
5139
4953
|
"string"
|
|
5140
4954
|
]
|
|
5141
4955
|
},
|
|
4956
|
+
"compression": {
|
|
4957
|
+
"anyOf": [
|
|
4958
|
+
{
|
|
4959
|
+
"enum": [
|
|
4960
|
+
"lzo",
|
|
4961
|
+
"xz"
|
|
4962
|
+
],
|
|
4963
|
+
"type": "string"
|
|
4964
|
+
},
|
|
4965
|
+
{
|
|
4966
|
+
"type": "null"
|
|
4967
|
+
}
|
|
4968
|
+
],
|
|
4969
|
+
"default": "lzo",
|
|
4970
|
+
"description": "Sets the compression type for the snap. Can be xz or lzo. Defaults to lzo when not specified."
|
|
4971
|
+
},
|
|
5142
4972
|
"confinement": {
|
|
5143
4973
|
"anyOf": [
|
|
5144
4974
|
{
|
|
@@ -5281,9 +5111,6 @@
|
|
|
5281
5111
|
{
|
|
5282
5112
|
"$ref": "#/definitions/GenericServerOptions"
|
|
5283
5113
|
},
|
|
5284
|
-
{
|
|
5285
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
5286
|
-
},
|
|
5287
5114
|
{
|
|
5288
5115
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
5289
5116
|
},
|
|
@@ -5311,9 +5138,6 @@
|
|
|
5311
5138
|
{
|
|
5312
5139
|
"$ref": "#/definitions/GenericServerOptions"
|
|
5313
5140
|
},
|
|
5314
|
-
{
|
|
5315
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
5316
|
-
},
|
|
5317
5141
|
{
|
|
5318
5142
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
5319
5143
|
},
|
|
@@ -5609,9 +5433,6 @@
|
|
|
5609
5433
|
{
|
|
5610
5434
|
"$ref": "#/definitions/GenericServerOptions"
|
|
5611
5435
|
},
|
|
5612
|
-
{
|
|
5613
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
5614
|
-
},
|
|
5615
5436
|
{
|
|
5616
5437
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
5617
5438
|
},
|
|
@@ -5639,9 +5460,6 @@
|
|
|
5639
5460
|
{
|
|
5640
5461
|
"$ref": "#/definitions/GenericServerOptions"
|
|
5641
5462
|
},
|
|
5642
|
-
{
|
|
5643
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
5644
|
-
},
|
|
5645
5463
|
{
|
|
5646
5464
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
5647
5465
|
},
|
|
@@ -6012,9 +5830,6 @@
|
|
|
6012
5830
|
{
|
|
6013
5831
|
"$ref": "#/definitions/GenericServerOptions"
|
|
6014
5832
|
},
|
|
6015
|
-
{
|
|
6016
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
6017
|
-
},
|
|
6018
5833
|
{
|
|
6019
5834
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
6020
5835
|
},
|
|
@@ -6042,9 +5857,6 @@
|
|
|
6042
5857
|
{
|
|
6043
5858
|
"$ref": "#/definitions/GenericServerOptions"
|
|
6044
5859
|
},
|
|
6045
|
-
{
|
|
6046
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
6047
|
-
},
|
|
6048
5860
|
{
|
|
6049
5861
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
6050
5862
|
},
|
|
@@ -6917,9 +6729,6 @@
|
|
|
6917
6729
|
{
|
|
6918
6730
|
"$ref": "#/definitions/GenericServerOptions"
|
|
6919
6731
|
},
|
|
6920
|
-
{
|
|
6921
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
6922
|
-
},
|
|
6923
6732
|
{
|
|
6924
6733
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
6925
6734
|
},
|
|
@@ -6947,9 +6756,6 @@
|
|
|
6947
6756
|
{
|
|
6948
6757
|
"$ref": "#/definitions/GenericServerOptions"
|
|
6949
6758
|
},
|
|
6950
|
-
{
|
|
6951
|
-
"$ref": "#/definitions/BintrayOptions"
|
|
6952
|
-
},
|
|
6953
6759
|
{
|
|
6954
6760
|
"$ref": "#/definitions/CustomPublishOptions"
|
|
6955
6761
|
},
|
|
@@ -18,34 +18,61 @@
|
|
|
18
18
|
|
|
19
19
|
<Property Id="ApplicationFolderName" Value="${installationDirectoryWixName}"/>
|
|
20
20
|
<Property Id="WixAppFolder" Value="WixPerUserFolder"/>
|
|
21
|
+
<Property Id="DISABLEADVTSHORTCUTS" Value="1"/>
|
|
21
22
|
|
|
22
23
|
{{ if (iconPath) { }}
|
|
23
24
|
<Icon Id="${iconId}" SourceFile="${iconPath}"/>
|
|
24
25
|
<Property Id="ARPPRODUCTICON" Value="${iconId}"/>
|
|
25
26
|
{{ } -}}
|
|
26
27
|
|
|
27
|
-
{{ if (
|
|
28
|
-
|
|
28
|
+
{{ if (isRunAfterFinish) { }}
|
|
29
|
+
<CustomAction Id="runAfterFinish" FileKey="mainExecutable" ExeCommand="" Execute="immediate" Impersonate="yes" Return="asyncNoWait"/>
|
|
30
|
+
{{ if (!isAssisted) { }}
|
|
31
|
+
<!-- https://stackoverflow.com/questions/1871531/launch-after-install-with-no-ui -->
|
|
32
|
+
<InstallExecuteSequence>
|
|
33
|
+
<Custom Action="runAfterFinish" After="InstallFinalize">NOT Installed AND UILevel >= 4</Custom>
|
|
34
|
+
</InstallExecuteSequence>
|
|
35
|
+
{{ } -}}
|
|
29
36
|
{{ } -}}
|
|
30
37
|
|
|
31
|
-
<Property Id="ALLUSERS" Secure="yes" Value="2"/>
|
|
32
38
|
{{ if (isPerMachine) { }}
|
|
33
|
-
|
|
39
|
+
<Property Id="ALLUSERS" Secure="yes" Value="1"/>
|
|
34
40
|
{{ } else { }}
|
|
35
|
-
|
|
41
|
+
<Property Id="ALLUSERS" Secure="yes" Value="2"/>
|
|
36
42
|
{{ } -}}
|
|
43
|
+
<Property Id="MSIINSTALLPERUSER" Secure="yes" Value="1"/>
|
|
37
44
|
|
|
38
45
|
{{ if (isAssisted) { }}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
<WixVariable Id="WixUISupportPerUser" Value="1" Overridable="yes"/>
|
|
47
|
+
<WixVariable Id="WixUISupportPerMachine" Value="1" Overridable="yes"/>
|
|
48
|
+
{{ if (isPerMachine) { }}
|
|
49
|
+
<WixVariable Id="WixUISupportPerUser" Value="0"/>
|
|
50
|
+
{{ } -}}
|
|
51
|
+
|
|
52
|
+
{{ if (isRunAfterFinish) { }}
|
|
53
|
+
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1"/>
|
|
54
|
+
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Run ${productName}"/>
|
|
55
|
+
<UI>
|
|
56
|
+
<Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="runAfterFinish">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 AND NOT Installed</Publish>
|
|
57
|
+
</UI>
|
|
58
|
+
{{ } -}}
|
|
59
|
+
|
|
60
|
+
<UIRef Id="WixUI_InstallDir"/>
|
|
61
|
+
<UI>
|
|
62
|
+
<Publish Dialog="WelcomeDlg" Control="Next" Event="SpawnWaitDialog" Value="WaitForCostingDlg" Order="2">1 OR CostingComplete = 1</Publish>
|
|
63
|
+
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallScopeDlg" Order="2">NOT Installed</Publish>
|
|
64
|
+
|
|
65
|
+
<Publish Dialog="InstallScopeDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="1">1</Publish>
|
|
66
|
+
<Publish Dialog="InstallScopeDlg" Control="Next" Property="WixAppFolder" Value="WixPerUserFolder" Order="1">!(wix.WixUISupportPerUser) AND NOT Privileged</Publish>
|
|
67
|
+
<Publish Dialog="InstallScopeDlg" Control="Next" Property="WixAppFolder" Value="WixPerMachineFolder" Order="2">NOT !(wix.WixUISupportPerUser)</Publish>
|
|
68
|
+
<Publish Dialog="InstallScopeDlg" Control="Next" Property="ALLUSERS" Value="{}" Order="3">WixAppFolder = "WixPerUserFolder"</Publish>
|
|
69
|
+
<Publish Dialog="InstallScopeDlg" Control="Next" Property="ALLUSERS" Value="1" Order="4">WixAppFolder = "WixPerMachineFolder"</Publish>
|
|
70
|
+
<!-- Run 'FindRelatedProducts' again after changing the install scope, because its first run might have ignored an existing installation based on the default scope at the time. https://stackoverflow.com/a/35064434 -->
|
|
71
|
+
<Publish Dialog="InstallScopeDlg" Control="Next" Event="DoAction" Value="FindRelatedProducts" Order="5">1</Publish>
|
|
72
|
+
<Publish Dialog="InstallScopeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="6">1</Publish>
|
|
73
|
+
|
|
74
|
+
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallScopeDlg" Order="2">NOT Installed</Publish>
|
|
75
|
+
</UI>
|
|
49
76
|
{{ } -}}
|
|
50
77
|
|
|
51
78
|
<Directory Id="TARGETDIR" Name="SourceDir">
|
|
@@ -90,5 +90,41 @@
|
|
|
90
90
|
!macroend
|
|
91
91
|
|
|
92
92
|
!macro extractUsing7za FILE
|
|
93
|
+
Push $OUTDIR
|
|
94
|
+
CreateDirectory "$PLUGINSDIR\7z-out"
|
|
95
|
+
ClearErrors
|
|
96
|
+
SetOutPath "$PLUGINSDIR\7z-out"
|
|
97
|
+
Nsis7z::Extract "${FILE}"
|
|
98
|
+
Pop $R0
|
|
99
|
+
SetOutPath $R0
|
|
100
|
+
|
|
101
|
+
# Retry counter
|
|
102
|
+
StrCpy $R1 0
|
|
103
|
+
|
|
104
|
+
LoopExtract7za:
|
|
105
|
+
IntOp $R1 $R1 + 1
|
|
106
|
+
|
|
107
|
+
# Attempt to copy files in atomic way
|
|
108
|
+
CopyFiles /SILENT "$PLUGINSDIR\7z-out\*" $OUTDIR
|
|
109
|
+
IfErrors 0 DoneExtract7za
|
|
110
|
+
|
|
111
|
+
DetailPrint `Can't modify "${PRODUCT_NAME}"'s files.`
|
|
112
|
+
${if} $R1 < 5
|
|
113
|
+
# Try copying a few times before asking for a user action.
|
|
114
|
+
Goto RetryExtract7za
|
|
115
|
+
${else}
|
|
116
|
+
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "$(appCannotBeClosed)" /SD IDCANCEL IDRETRY RetryExtract7za
|
|
117
|
+
${endIf}
|
|
118
|
+
|
|
119
|
+
# As an absolutely last resort after a few automatic attempts and user
|
|
120
|
+
# intervention - we will just overwrite everything with `Nsis7z::Extract`
|
|
121
|
+
# even though it is not atomic and will ignore errors.
|
|
93
122
|
Nsis7z::Extract "${FILE}"
|
|
123
|
+
Quit
|
|
124
|
+
|
|
125
|
+
RetryExtract7za:
|
|
126
|
+
Sleep 1000
|
|
127
|
+
Goto LoopExtract7za
|
|
128
|
+
|
|
129
|
+
DoneExtract7za:
|
|
94
130
|
!macroend
|