@todesktop/cli 1.10.1 → 1.10.3

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "name": "@todesktop/cli",
7
- "version": "1.10.1",
7
+ "version": "1.10.3",
8
8
  "license": "MIT",
9
9
  "author": "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
10
10
  "homepage": "https://todesktop.com/cli",
@@ -31,9 +31,12 @@
31
31
  "release": "npm run build && npx np --tag=latest",
32
32
  "release-beta": "npm run build && npx np --any-branch --no-tests --tag=beta",
33
33
  "test": "ava",
34
- "test--watch": "npm test -- --watch"
34
+ "test--watch": "npm test -- --watch",
35
+ "postinstall": "node scripts/postinstall.js"
35
36
  },
36
37
  "files": [
38
+ "scripts",
39
+ "schemas",
37
40
  "dist",
38
41
  "docs",
39
42
  ".env",
@@ -0,0 +1,541 @@
1
+ {
2
+ "type": "object",
3
+ "required": ["id", "icon", "schemaVersion"],
4
+ "additionalProperties": false,
5
+ "properties": {
6
+ "appBuilderLibVersion": {
7
+ "type": "string",
8
+ "validSemver": {},
9
+ "minLength": 1
10
+ },
11
+ "appId": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "appFiles": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "minItems": 1
22
+ },
23
+ "appProtocolScheme": {
24
+ "oneOf": [
25
+ {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string",
33
+ "minLength": 1
34
+ },
35
+ "minItems": 1
36
+ }
37
+ ]
38
+ },
39
+ "appPath": {
40
+ "type": "string",
41
+ "file": {
42
+ "isOptional": true,
43
+ "mustBeElectronApp": true
44
+ }
45
+ },
46
+ "asar": {
47
+ "type": "boolean",
48
+ "default": true
49
+ },
50
+ "asarUnpack": {
51
+ "oneOf": [
52
+ {
53
+ "type": "boolean"
54
+ },
55
+ {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "string",
59
+ "minLength": 1
60
+ },
61
+ "minItems": 1
62
+ }
63
+ ]
64
+ },
65
+ "buildVersion": {
66
+ "type": "string",
67
+ "minLength": 1
68
+ },
69
+ "copyright": {
70
+ "type": "string",
71
+ "minLength": 1
72
+ },
73
+ "electronMirror": {
74
+ "type": "string",
75
+ "format": "uri"
76
+ },
77
+ "electronVersion": {
78
+ "type": "string",
79
+ "minLength": 1
80
+ },
81
+ "extends": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ },
85
+ "extraContentFiles": {
86
+ "type": "array",
87
+ "items": {
88
+ "type": "object",
89
+ "required": ["from"],
90
+ "additionalProperties": false,
91
+ "properties": {
92
+ "from": {
93
+ "type": "string",
94
+ "file": {}
95
+ },
96
+ "to": {
97
+ "type": "string"
98
+ }
99
+ }
100
+ }
101
+ },
102
+ "extraResources": {
103
+ "type": "array",
104
+ "items": {
105
+ "type": "object",
106
+ "required": ["from"],
107
+ "additionalProperties": false,
108
+ "properties": {
109
+ "from": {
110
+ "type": "string",
111
+ "file": {
112
+ "from": "context.projectRoot"
113
+ }
114
+ },
115
+ "to": {
116
+ "type": "string"
117
+ }
118
+ }
119
+ }
120
+ },
121
+ "fileAssociations": {
122
+ "type": "array",
123
+ "items": {
124
+ "type": "object",
125
+ "required": ["ext"],
126
+ "additionalProperties": false,
127
+ "properties": {
128
+ "ext": {
129
+ "oneOf": [
130
+ {
131
+ "type": "string",
132
+ "minLength": 1
133
+ },
134
+ {
135
+ "type": "array",
136
+ "items": {
137
+ "type": "string",
138
+ "minLength": 1
139
+ }
140
+ }
141
+ ]
142
+ },
143
+ "description": {
144
+ "type": "string",
145
+ "minLength": 1
146
+ },
147
+ "name": {
148
+ "type": "string",
149
+ "minLength": 1
150
+ },
151
+ "mimeType": {
152
+ "type": "string",
153
+ "minLength": 1
154
+ },
155
+ "icon": {
156
+ "type": "string",
157
+ "minLength": 1
158
+ },
159
+ "role": {
160
+ "type": "string",
161
+ "minLength": 1
162
+ },
163
+ "isPackage": {
164
+ "type": "boolean"
165
+ },
166
+ "rank": {
167
+ "type": "string",
168
+ "enum": ["Owner", "Default", "Alternate", "None"]
169
+ }
170
+ }
171
+ },
172
+ "minItems": 1
173
+ },
174
+ "filesForDistribution": {
175
+ "type": "array",
176
+ "items": {
177
+ "type": "string",
178
+ "minLength": 1
179
+ },
180
+ "minItems": 1
181
+ },
182
+ "icon": {
183
+ "type": "string",
184
+ "file": {
185
+ "extensions": ["icns", "png"],
186
+ "mustBeFile": true
187
+ },
188
+ "minLength": 3
189
+ },
190
+ "linux": {
191
+ "type": "object",
192
+ "additionalProperties": false,
193
+ "properties": {
194
+ "category": {
195
+ "type": "string",
196
+ "minLength": 1
197
+ },
198
+ "icon": {
199
+ "type": "string",
200
+ "file": {
201
+ "extensions": ["icns", "png"],
202
+ "mustBeFile": true
203
+ },
204
+ "minLength": 3
205
+ },
206
+ "noSandbox": {
207
+ "type": "boolean"
208
+ }
209
+ }
210
+ },
211
+ "id": {
212
+ "type": "string",
213
+ "minLength": 1
214
+ },
215
+ "includeSubNodeModules": {
216
+ "type": "boolean",
217
+ "default": false
218
+ },
219
+ "mac": {
220
+ "type": "object",
221
+ "additionalProperties": false,
222
+ "properties": {
223
+ "category": {
224
+ "type": "string",
225
+ "minLength": 1
226
+ },
227
+ "additionalBinariesToSign": {
228
+ "type": "array",
229
+ "items": {
230
+ "type": "string",
231
+ "minLength": 1
232
+ }
233
+ },
234
+ "entitlements": {
235
+ "type": "string",
236
+ "file": {
237
+ "extensions": ["plist"],
238
+ "mustBeFile": true
239
+ },
240
+ "minLength": 1
241
+ },
242
+ "entitlementsInherit": {
243
+ "type": "string",
244
+ "file": {
245
+ "extensions": ["plist"],
246
+ "mustBeFile": true
247
+ },
248
+ "minLength": 1
249
+ },
250
+ "extendInfo": {
251
+ "type": "object"
252
+ },
253
+ "icon": {
254
+ "type": "string",
255
+ "file": {
256
+ "extensions": ["icns", "png"],
257
+ "mustBeFile": true
258
+ },
259
+ "minLength": 3
260
+ },
261
+ "requirements": {
262
+ "type": "string",
263
+ "file": {
264
+ "extensions": ["txt"],
265
+ "mustBeFile": true
266
+ },
267
+ "minLength": 1
268
+ }
269
+ }
270
+ },
271
+ "mas": {
272
+ "type": "object",
273
+ "additionalProperties": false,
274
+ "properties": {
275
+ "entitlements": {
276
+ "type": "string",
277
+ "file": {
278
+ "extensions": ["plist"],
279
+ "mustBeFile": true
280
+ },
281
+ "minLength": 1
282
+ },
283
+ "entitlementsInherit": {
284
+ "type": "string",
285
+ "file": {
286
+ "extensions": ["plist"],
287
+ "mustBeFile": true
288
+ },
289
+ "minLength": 1
290
+ },
291
+ "provisioningProfile": {
292
+ "type": "string",
293
+ "file": {
294
+ "extensions": ["provisionprofile"],
295
+ "mustBeFile": true
296
+ },
297
+ "minLength": 1
298
+ },
299
+ "type": {
300
+ "type": "string",
301
+ "enum": ["development", "distribution"]
302
+ },
303
+ "x64ArchFiles": {
304
+ "type": "string"
305
+ }
306
+ }
307
+ },
308
+ "dmg": {
309
+ "type": "object",
310
+ "additionalProperties": false,
311
+ "properties": {
312
+ "background": {
313
+ "type": "string",
314
+ "file": {
315
+ "extensions": ["tiff"],
316
+ "mustBeFile": true
317
+ },
318
+ "minLength": 1
319
+ },
320
+ "artifactName": {
321
+ "type": "string",
322
+ "minLength": 1
323
+ },
324
+ "backgroundColor": {
325
+ "type": "string",
326
+ "minLength": 1
327
+ },
328
+ "iconSize": {
329
+ "type": "number"
330
+ },
331
+ "iconTextSize": {
332
+ "type": "number"
333
+ },
334
+ "title": {
335
+ "type": "string",
336
+ "minLength": 1
337
+ },
338
+ "contents": {
339
+ "type": "array",
340
+ "items": {
341
+ "type": "object",
342
+ "additionalProperties": false,
343
+ "properties": {
344
+ "x": {
345
+ "type": "number"
346
+ },
347
+ "y": {
348
+ "type": "number"
349
+ }
350
+ }
351
+ }
352
+ },
353
+ "window": {
354
+ "type": "object",
355
+ "additionalProperties": false,
356
+ "properties": {
357
+ "x": {
358
+ "type": "number"
359
+ },
360
+ "y": {
361
+ "type": "number"
362
+ },
363
+ "width": {
364
+ "type": "number"
365
+ },
366
+ "height": {
367
+ "type": "number"
368
+ }
369
+ }
370
+ }
371
+ }
372
+ },
373
+ "nodeVersion": {
374
+ "type": "string",
375
+ "validSemver": {},
376
+ "minLength": 1
377
+ },
378
+ "npmVersion": {
379
+ "type": "string",
380
+ "validSemver": {},
381
+ "minLength": 1
382
+ },
383
+ "pnpmVersion": {
384
+ "type": "string",
385
+ "validSemver": {},
386
+ "minLength": 1
387
+ },
388
+ "packageJson": {
389
+ "type": "object"
390
+ },
391
+ "packageManager": {
392
+ "type": "string",
393
+ "enum": ["npm", "yarn", "pnpm"]
394
+ },
395
+ "rebuildLibrary": {
396
+ "type": "string",
397
+ "enum": ["app-builder", "@electron/rebuild"]
398
+ },
399
+ "schemaVersion": {
400
+ "type": "number",
401
+ "minimum": 1,
402
+ "maximum": 1
403
+ },
404
+ "snap": {
405
+ "type": "object",
406
+ "additionalProperties": false,
407
+ "properties": {
408
+ "after": {
409
+ "type": "array",
410
+ "items": {
411
+ "type": "string",
412
+ "minLength": 1
413
+ }
414
+ },
415
+ "appPartStage": {
416
+ "type": "array",
417
+ "items": {
418
+ "type": "string",
419
+ "minLength": 1
420
+ }
421
+ },
422
+ "assumes": {
423
+ "oneOf": [
424
+ {
425
+ "type": "string",
426
+ "minLength": 1
427
+ },
428
+ {
429
+ "type": "array",
430
+ "items": {
431
+ "type": "string",
432
+ "minLength": 1
433
+ }
434
+ }
435
+ ]
436
+ },
437
+ "autoStart": {
438
+ "type": "boolean"
439
+ },
440
+ "buildPackages": {
441
+ "type": "array",
442
+ "items": {
443
+ "type": "string",
444
+ "minLength": 1
445
+ }
446
+ },
447
+ "confinement": {
448
+ "type": "string",
449
+ "enum": ["classic", "devmode", "strict"]
450
+ },
451
+ "environment": {
452
+ "type": "object"
453
+ },
454
+ "grade": {
455
+ "type": "string",
456
+ "enum": ["devel", "stable"]
457
+ },
458
+ "layout": {
459
+ "type": "object"
460
+ },
461
+ "plugs": {
462
+ "type": "array",
463
+ "items": {
464
+ "anyOf": [
465
+ {
466
+ "type": "string",
467
+ "minLength": 1
468
+ },
469
+ {
470
+ "type": "object"
471
+ }
472
+ ]
473
+ }
474
+ },
475
+ "stagePackages": {
476
+ "type": "array",
477
+ "items": {
478
+ "type": "string",
479
+ "minLength": 1
480
+ }
481
+ },
482
+ "summary": {
483
+ "type": "string",
484
+ "maxLength": 78
485
+ },
486
+ "useTemplateApp": {
487
+ "type": "boolean"
488
+ }
489
+ }
490
+ },
491
+ "uploadSizeLimit": {
492
+ "type": "number"
493
+ },
494
+ "windows": {
495
+ "type": "object",
496
+ "additionalProperties": false,
497
+ "properties": {
498
+ "icon": {
499
+ "type": "string",
500
+ "file": {
501
+ "extensions": ["icns", "png", "icon"],
502
+ "mustBeFile": true
503
+ },
504
+ "minLength": 3
505
+ },
506
+ "nsisCustomBinary": {
507
+ "type": "object",
508
+ "additionalProperties": false,
509
+ "properties": {
510
+ "checksum": {
511
+ "type": "string"
512
+ },
513
+ "debugLogging": {
514
+ "type": "boolean"
515
+ },
516
+ "url": {
517
+ "type": "string"
518
+ },
519
+ "version": {
520
+ "type": "string"
521
+ }
522
+ }
523
+ },
524
+ "nsisInclude": {
525
+ "type": "string",
526
+ "file": {
527
+ "extensions": ["nsh"],
528
+ "mustBeFile": true
529
+ }
530
+ },
531
+ "publisherName": {
532
+ "type": "array",
533
+ "items": {
534
+ "type": "string",
535
+ "minLength": 1
536
+ }
537
+ }
538
+ }
539
+ }
540
+ }
541
+ }
@@ -0,0 +1,19 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
2
+ const path = require("path");
3
+
4
+ console.log(`
5
+ Thank you for installing @todesktop/cli!
6
+
7
+ To enable JSON validation and IntelliSense for your configuration files, please add the following to your VSCode/Cursor settings:
8
+
9
+ {
10
+ "json.schemas": [
11
+ {
12
+ "fileMatch": ["todesktop.json", "todesktop.*.json"],
13
+ "url": "${path
14
+ .resolve(__dirname, "../", "schemas", "schema.json")
15
+ .substring(1)}"
16
+ }
17
+ ]
18
+ }
19
+ `);