@todesktop/cli 1.20.0-0 → 1.20.2
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 +72 -2
- package/dist/cli.js +143 -110
- package/dist/cli.js.map +3 -3
- 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.
|
|
51
|
+
"$schema": "https://unpkg.com/@todesktop/cli@1.20.2/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.
|
|
416
|
+
"$schema": "https://unpkg.com/@todesktop/cli@1.20.2/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
|
|
@@ -1625,6 +1679,22 @@ Now, when we build your app on ToDesktop servers, it will also run your custom
|
|
|
1625
1679
|
|
|
1626
1680
|
## Changelog
|
|
1627
1681
|
|
|
1682
|
+
### 1.20.2
|
|
1683
|
+
|
|
1684
|
+
#### Patch Changes
|
|
1685
|
+
|
|
1686
|
+
- 1bb4683: Fix pnpm catalog references not being resolved when
|
|
1687
|
+
bundleWorkspacePackages is enabled but no workspace packages are bundled. This
|
|
1688
|
+
ensures apps using only `catalog:` dependencies (without `workspace:*`
|
|
1689
|
+
dependencies) can build correctly with Bun and other package managers.
|
|
1690
|
+
|
|
1691
|
+
### 1.20.1
|
|
1692
|
+
|
|
1693
|
+
#### Patch Changes
|
|
1694
|
+
|
|
1695
|
+
- 14e248b: Use todesktopRuntimeVersionUsed instead of
|
|
1696
|
+
todesktopRuntimeVersionSpecified for smoke test
|
|
1697
|
+
|
|
1628
1698
|
### 1.20.0
|
|
1629
1699
|
|
|
1630
1700
|
#### Minor Changes
|