@todesktop/cli 1.20.0-0 → 1.20.0-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/README.md +56 -2
- package/dist/cli.js +5 -3
- package/dist/cli.js.map +2 -2
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ Create a `todesktop.json` file in the root of your Electron project.
|
|
|
48
48
|
|
|
49
49
|
```json
|
|
50
50
|
{
|
|
51
|
-
"$schema": "https://unpkg.com/@todesktop/cli@1.20.0-
|
|
51
|
+
"$schema": "https://unpkg.com/@todesktop/cli@1.20.0-1/schemas/schema.json",
|
|
52
52
|
"schemaVersion": 1
|
|
53
53
|
"id": "your-todesktop-id",
|
|
54
54
|
"icon": "./desktop-icon.png",
|
|
@@ -413,7 +413,7 @@ To enable JSON validation and IntelliSense for your `todesktop.json` file in com
|
|
|
413
413
|
- For example, if using a hosted version of the schema:
|
|
414
414
|
```json
|
|
415
415
|
{
|
|
416
|
-
"$schema": "https://unpkg.com/@todesktop/cli@1.20.0-
|
|
416
|
+
"$schema": "https://unpkg.com/@todesktop/cli@1.20.0-1/schemas/schema.json",
|
|
417
417
|
"id": "your-todesktop-id"
|
|
418
418
|
}
|
|
419
419
|
```
|
|
@@ -535,6 +535,60 @@ Example:
|
|
|
535
535
|
}
|
|
536
536
|
```
|
|
537
537
|
|
|
538
|
+
### `fuses` - (optional) object
|
|
539
|
+
|
|
540
|
+
Configure Electron Fuses to enable or disable certain Electron features at package time. Fuses are compile-time feature flags that cannot be changed at runtime, providing security benefits. See https://www.electronjs.org/docs/latest/tutorial/fuses for more information.
|
|
541
|
+
|
|
542
|
+
Fuses allow you to harden your Electron application by disabling features that
|
|
543
|
+
your app doesn't need. Once a fuse is flipped at build time, it cannot be
|
|
544
|
+
changed at runtime.
|
|
545
|
+
|
|
546
|
+
Example:
|
|
547
|
+
|
|
548
|
+
```json
|
|
549
|
+
{
|
|
550
|
+
"fuses": {
|
|
551
|
+
"runAsNode": false,
|
|
552
|
+
"enableNodeOptionsEnvironmentVariable": false,
|
|
553
|
+
"enableNodeCliInspectArguments": false,
|
|
554
|
+
"enableCookieEncryption": true,
|
|
555
|
+
"onlyLoadAppFromAsar": true
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
#### `fuses.runAsNode` - (optional) boolean
|
|
561
|
+
|
|
562
|
+
Controls whether the ELECTRON_RUN_AS_NODE environment variable is respected. When disabled, the env variable will be ignored. Default: true (enabled).
|
|
563
|
+
|
|
564
|
+
#### `fuses.enableCookieEncryption` - (optional) boolean
|
|
565
|
+
|
|
566
|
+
Controls whether the cookie store on disk is encrypted using OS-level cryptography. Default: false (disabled).
|
|
567
|
+
|
|
568
|
+
#### `fuses.enableNodeOptionsEnvironmentVariable` - (optional) boolean
|
|
569
|
+
|
|
570
|
+
Controls whether the NODE_OPTIONS environment variable is respected. When disabled, the env variable will be ignored. Default: true (enabled).
|
|
571
|
+
|
|
572
|
+
#### `fuses.enableNodeCliInspectArguments` - (optional) boolean
|
|
573
|
+
|
|
574
|
+
Controls whether command line arguments like --inspect are respected. When disabled, these arguments will be ignored. Default: true (enabled).
|
|
575
|
+
|
|
576
|
+
#### `fuses.enableEmbeddedAsarIntegrityValidation` - (optional) boolean
|
|
577
|
+
|
|
578
|
+
Controls whether Electron validates the integrity of the app.asar file. Requires the integrity block in the asar header. Default: false (disabled).
|
|
579
|
+
|
|
580
|
+
#### `fuses.onlyLoadAppFromAsar` - (optional) boolean
|
|
581
|
+
|
|
582
|
+
Controls whether Electron only loads the app from an asar archive. When enabled, Electron will not search for loose files. Default: false (disabled).
|
|
583
|
+
|
|
584
|
+
#### `fuses.loadBrowserProcessSpecificV8Snapshot` - (optional) boolean
|
|
585
|
+
|
|
586
|
+
Controls whether the browser process uses a V8 snapshot file located at browser_v8_context_snapshot.bin. Default: false (disabled).
|
|
587
|
+
|
|
588
|
+
#### `fuses.grantFileProtocolExtraPrivileges` - (optional) boolean
|
|
589
|
+
|
|
590
|
+
Controls whether pages loaded via file:// protocol get extra privileges. When disabled, file:// pages are more restricted. Requires Electron 29+. Default: true (enabled).
|
|
591
|
+
|
|
538
592
|
### `appProtocolScheme` - (optional) string | string[]
|
|
539
593
|
|
|
540
594
|
Default: no protocol scheme is registered
|
package/dist/cli.js
CHANGED
|
@@ -8688,7 +8688,7 @@ var package_default = {
|
|
|
8688
8688
|
access: "public"
|
|
8689
8689
|
},
|
|
8690
8690
|
name: "@todesktop/cli",
|
|
8691
|
-
version: "1.20.0-
|
|
8691
|
+
version: "1.20.0-1",
|
|
8692
8692
|
license: "MIT",
|
|
8693
8693
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
8694
8694
|
homepage: "https://todesktop.com/cli",
|
|
@@ -8714,13 +8714,15 @@ var package_default = {
|
|
|
8714
8714
|
test: "ava",
|
|
8715
8715
|
"test:e2e": "node test/output-snapshots/output.test.js",
|
|
8716
8716
|
"test--watch": "npm test -- --watch",
|
|
8717
|
-
typecheck: "tsc --noEmit && tsc-strict"
|
|
8717
|
+
typecheck: "tsc --noEmit && tsc-strict",
|
|
8718
|
+
prepublishOnly: "npm run docs:generate"
|
|
8718
8719
|
},
|
|
8719
8720
|
files: [
|
|
8720
8721
|
"scripts/postinstall.js",
|
|
8721
8722
|
"schemas",
|
|
8722
8723
|
"dist",
|
|
8723
|
-
".env"
|
|
8724
|
+
".env",
|
|
8725
|
+
"README.md"
|
|
8724
8726
|
],
|
|
8725
8727
|
dependencies: {
|
|
8726
8728
|
"@segment/analytics-node": "^2.3.0",
|