@todesktop/cli 1.20.2 → 1.22.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.
- package/README.md +76 -2
- package/dist/cli.js +50 -9
- package/dist/cli.js.map +2 -2
- package/dist/types.d.ts +17 -0
- package/package.json +8 -7
- package/schemas/schema.json +31 -0
package/dist/types.d.ts
CHANGED
|
@@ -324,6 +324,23 @@ export interface LinuxConfigProperty {
|
|
|
324
324
|
* The version of the Linux image that ToDesktop should use to build your app.
|
|
325
325
|
*/
|
|
326
326
|
imageVersion?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Additional command-line arguments to pass to the executable in the Linux .desktop file Exec line.
|
|
329
|
+
*/
|
|
330
|
+
executableArgs?: string[];
|
|
331
|
+
/**
|
|
332
|
+
* Configuration for Debian (.deb) packaging.
|
|
333
|
+
*/
|
|
334
|
+
deb?: {
|
|
335
|
+
/**
|
|
336
|
+
* Additional package dependencies to append to ToDesktop's default .deb dependencies.
|
|
337
|
+
*/
|
|
338
|
+
additionalDepends?: string[];
|
|
339
|
+
/**
|
|
340
|
+
* The list of package dependencies for the .deb package. This overwrites ToDesktop's default dependency list and linux.deb.additionalDepends.
|
|
341
|
+
*/
|
|
342
|
+
depends?: string[];
|
|
343
|
+
};
|
|
327
344
|
/**
|
|
328
345
|
* This option allows you to configure whether your app should run in a sandboxed environment.
|
|
329
346
|
*/
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"name": "@todesktop/cli",
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.22.0",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"author": "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
10
10
|
"homepage": "https://todesktop.com/cli",
|
|
@@ -20,18 +20,19 @@
|
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "npm run docs:generate && npm run types:generate && node scripts/esbuild.js",
|
|
23
|
-
"dev": "node scripts/esbuild.js --link --watch --stage dev",
|
|
24
|
-
"dev:local:prod": "node scripts/esbuild.js --link --watch --stage prod-local",
|
|
25
|
-
"dev:prod": "node scripts/esbuild.js --link --watch",
|
|
26
23
|
"docs:generate": "node scripts/generate-readme.js",
|
|
27
24
|
"format": "prettier . --write && eslint --fix",
|
|
28
25
|
"lint": "prettier . --check && eslint",
|
|
29
|
-
"
|
|
26
|
+
"prepublishOnly": "npm run docs:generate",
|
|
30
27
|
"test": "ava",
|
|
31
28
|
"test:e2e": "node test/output-snapshots/output.test.js",
|
|
32
|
-
"test
|
|
29
|
+
"test:watch": "npm test -- --watch",
|
|
33
30
|
"typecheck": "tsc --noEmit && tsc-strict",
|
|
34
|
-
"
|
|
31
|
+
"types:generate": "node scripts/generate-types.js",
|
|
32
|
+
"watch:dev": "node scripts/esbuild.js --link --watch --stage dev",
|
|
33
|
+
"watch:dev-local": "node scripts/esbuild.js --link --watch --stage dev-local",
|
|
34
|
+
"watch:prod": "node scripts/esbuild.js --link --watch",
|
|
35
|
+
"watch:prod-local": "node scripts/esbuild.js --link --watch --stage prod-local"
|
|
35
36
|
},
|
|
36
37
|
"files": [
|
|
37
38
|
"scripts/postinstall.js",
|
package/schemas/schema.json
CHANGED
|
@@ -443,6 +443,37 @@
|
|
|
443
443
|
"examples": ["0.1.0"],
|
|
444
444
|
"default": "0.0.12"
|
|
445
445
|
},
|
|
446
|
+
"executableArgs": {
|
|
447
|
+
"type": "array",
|
|
448
|
+
"items": {
|
|
449
|
+
"type": "string"
|
|
450
|
+
},
|
|
451
|
+
"description": "Additional command-line arguments to pass to the executable in the Linux .desktop file Exec line.",
|
|
452
|
+
"examples": [
|
|
453
|
+
["--enable-features=UseOzonePlatform", "--ozone-platform=x11"]
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
"deb": {
|
|
457
|
+
"type": "object",
|
|
458
|
+
"description": "Configuration for Debian (.deb) packaging.",
|
|
459
|
+
"additionalProperties": false,
|
|
460
|
+
"properties": {
|
|
461
|
+
"additionalDepends": {
|
|
462
|
+
"type": "array",
|
|
463
|
+
"items": {
|
|
464
|
+
"type": "string"
|
|
465
|
+
},
|
|
466
|
+
"description": "Additional package dependencies to append to ToDesktop's default .deb dependencies."
|
|
467
|
+
},
|
|
468
|
+
"depends": {
|
|
469
|
+
"type": "array",
|
|
470
|
+
"items": {
|
|
471
|
+
"type": "string"
|
|
472
|
+
},
|
|
473
|
+
"description": "The list of package dependencies for the .deb package. This overwrites ToDesktop's default dependency list and linux.deb.additionalDepends."
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
},
|
|
446
477
|
"noSandbox": {
|
|
447
478
|
"type": "boolean",
|
|
448
479
|
"description": "This option allows you to configure whether your app should run in a sandboxed environment.",
|