@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/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.
|
|
51
|
+
"$schema": "https://unpkg.com/@todesktop/cli@1.22.0/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.
|
|
416
|
+
"$schema": "https://unpkg.com/@todesktop/cli@1.22.0/schemas/schema.json",
|
|
417
417
|
"id": "your-todesktop-id"
|
|
418
418
|
}
|
|
419
419
|
```
|
|
@@ -908,6 +908,53 @@ Linux Changelog:
|
|
|
908
908
|
you're doing.
|
|
909
909
|
- `0.0.11`: Updated git 2.25.1 → 2.47.1 node 18.18.2 → 18.20.5
|
|
910
910
|
|
|
911
|
+
### `linux.executableArgs` - (optional) string[]
|
|
912
|
+
|
|
913
|
+
Example: `--enable-features=UseOzonePlatform,--ozone-platform=x11`
|
|
914
|
+
|
|
915
|
+
Additional command-line arguments to pass to the executable in the Linux .desktop file Exec line.
|
|
916
|
+
|
|
917
|
+
This is useful if your Linux app requires specific flags to run reliably. For
|
|
918
|
+
example, some apps need Ozone platform flags for Wayland/X11 compatibility:
|
|
919
|
+
|
|
920
|
+
```json
|
|
921
|
+
{
|
|
922
|
+
"linux": {
|
|
923
|
+
"executableArgs": [
|
|
924
|
+
"--enable-features=UseOzonePlatform",
|
|
925
|
+
"--ozone-platform=x11"
|
|
926
|
+
]
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
```
|
|
930
|
+
|
|
931
|
+
Note: `--no-sandbox` is included by default. If you set `executableArgs`, it
|
|
932
|
+
will be preserved automatically unless you also set `noSandbox` to `false`.
|
|
933
|
+
|
|
934
|
+
### `linux.deb` - (optional) object
|
|
935
|
+
|
|
936
|
+
Configuration for Debian (.deb) packaging.
|
|
937
|
+
|
|
938
|
+
#### `linux.deb.additionalDepends` - (optional) string[]
|
|
939
|
+
|
|
940
|
+
Additional package dependencies to append to ToDesktop's default .deb dependencies.
|
|
941
|
+
|
|
942
|
+
This appends to ToDesktop's default Debian dependency list:
|
|
943
|
+
|
|
944
|
+
- `libgtk-3-0`
|
|
945
|
+
- `libnotify4`
|
|
946
|
+
- `libnss3`
|
|
947
|
+
- `libxss1`
|
|
948
|
+
- `libxtst6`
|
|
949
|
+
- `xdg-utils`
|
|
950
|
+
- `libatspi2.0-0`
|
|
951
|
+
- `libuuid1`
|
|
952
|
+
- `libsecret-1-0`
|
|
953
|
+
|
|
954
|
+
#### `linux.deb.depends` - (optional) string[]
|
|
955
|
+
|
|
956
|
+
The list of package dependencies for the .deb package. This overwrites ToDesktop's default dependency list and linux.deb.additionalDepends.
|
|
957
|
+
|
|
911
958
|
### `linux.noSandbox` - (optional) boolean
|
|
912
959
|
|
|
913
960
|
Default: `true`
|
|
@@ -1679,6 +1726,33 @@ Now, when we build your app on ToDesktop servers, it will also run your custom
|
|
|
1679
1726
|
|
|
1680
1727
|
## Changelog
|
|
1681
1728
|
|
|
1729
|
+
### 1.22.0
|
|
1730
|
+
|
|
1731
|
+
#### Minor Changes
|
|
1732
|
+
|
|
1733
|
+
- c0222ed: Added support for custom deb package dependencies via
|
|
1734
|
+
`linux.deb.depends` in todesktop.json
|
|
1735
|
+
|
|
1736
|
+
### 1.21.0
|
|
1737
|
+
|
|
1738
|
+
#### Minor Changes
|
|
1739
|
+
|
|
1740
|
+
- 7906119: Add `linux.executableArgs` configuration option for passing
|
|
1741
|
+
additional command-line arguments to the Linux executable.
|
|
1742
|
+
|
|
1743
|
+
### 1.20.4
|
|
1744
|
+
|
|
1745
|
+
#### Patch Changes
|
|
1746
|
+
|
|
1747
|
+
- da70faa: Fix `whoami` command not working when authenticated via environment
|
|
1748
|
+
variables (TODESKTOP_EMAIL and TODESKTOP_ACCESS_TOKEN)
|
|
1749
|
+
|
|
1750
|
+
### 1.20.3
|
|
1751
|
+
|
|
1752
|
+
#### Patch Changes
|
|
1753
|
+
|
|
1754
|
+
- 22b8f01: Fix `whoami` command
|
|
1755
|
+
|
|
1682
1756
|
### 1.20.2
|
|
1683
1757
|
|
|
1684
1758
|
#### Patch Changes
|
package/dist/cli.js
CHANGED
|
@@ -2892,6 +2892,37 @@ var schema_default = {
|
|
|
2892
2892
|
examples: ["0.1.0"],
|
|
2893
2893
|
default: "0.0.12"
|
|
2894
2894
|
},
|
|
2895
|
+
executableArgs: {
|
|
2896
|
+
type: "array",
|
|
2897
|
+
items: {
|
|
2898
|
+
type: "string"
|
|
2899
|
+
},
|
|
2900
|
+
description: "Additional command-line arguments to pass to the executable in the Linux .desktop file Exec line.",
|
|
2901
|
+
examples: [
|
|
2902
|
+
["--enable-features=UseOzonePlatform", "--ozone-platform=x11"]
|
|
2903
|
+
]
|
|
2904
|
+
},
|
|
2905
|
+
deb: {
|
|
2906
|
+
type: "object",
|
|
2907
|
+
description: "Configuration for Debian (.deb) packaging.",
|
|
2908
|
+
additionalProperties: false,
|
|
2909
|
+
properties: {
|
|
2910
|
+
additionalDepends: {
|
|
2911
|
+
type: "array",
|
|
2912
|
+
items: {
|
|
2913
|
+
type: "string"
|
|
2914
|
+
},
|
|
2915
|
+
description: "Additional package dependencies to append to ToDesktop's default .deb dependencies."
|
|
2916
|
+
},
|
|
2917
|
+
depends: {
|
|
2918
|
+
type: "array",
|
|
2919
|
+
items: {
|
|
2920
|
+
type: "string"
|
|
2921
|
+
},
|
|
2922
|
+
description: "The list of package dependencies for the .deb package. This overwrites ToDesktop's default dependency list and linux.deb.additionalDepends."
|
|
2923
|
+
}
|
|
2924
|
+
}
|
|
2925
|
+
},
|
|
2895
2926
|
noSandbox: {
|
|
2896
2927
|
type: "boolean",
|
|
2897
2928
|
description: "This option allows you to configure whether your app should run in a sandboxed environment.",
|
|
@@ -5157,7 +5188,15 @@ var LoginHOC = ({ children, isInteractive = true }) => {
|
|
|
5157
5188
|
);
|
|
5158
5189
|
if (newJwtToken) {
|
|
5159
5190
|
userCreds = await signInWithCustomToken(newJwtToken);
|
|
5160
|
-
if (userCreds.user)
|
|
5191
|
+
if (userCreds.user) {
|
|
5192
|
+
setEphemeralMode(true);
|
|
5193
|
+
setAuthConfig(
|
|
5194
|
+
TODESKTOP_EMAIL,
|
|
5195
|
+
TODESKTOP_ACCESS_TOKEN,
|
|
5196
|
+
newJwtToken
|
|
5197
|
+
);
|
|
5198
|
+
setIsLoggedIn(true);
|
|
5199
|
+
}
|
|
5161
5200
|
}
|
|
5162
5201
|
} else if (!isRawModeSupported || import_is_ci4.default) {
|
|
5163
5202
|
setError(
|
|
@@ -8719,7 +8758,7 @@ var package_default = {
|
|
|
8719
8758
|
access: "public"
|
|
8720
8759
|
},
|
|
8721
8760
|
name: "@todesktop/cli",
|
|
8722
|
-
version: "1.
|
|
8761
|
+
version: "1.22.0",
|
|
8723
8762
|
license: "MIT",
|
|
8724
8763
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
8725
8764
|
homepage: "https://todesktop.com/cli",
|
|
@@ -8735,18 +8774,19 @@ var package_default = {
|
|
|
8735
8774
|
},
|
|
8736
8775
|
scripts: {
|
|
8737
8776
|
build: "npm run docs:generate && npm run types:generate && node scripts/esbuild.js",
|
|
8738
|
-
dev: "node scripts/esbuild.js --link --watch --stage dev",
|
|
8739
|
-
"dev:local:prod": "node scripts/esbuild.js --link --watch --stage prod-local",
|
|
8740
|
-
"dev:prod": "node scripts/esbuild.js --link --watch",
|
|
8741
8777
|
"docs:generate": "node scripts/generate-readme.js",
|
|
8742
8778
|
format: "prettier . --write && eslint --fix",
|
|
8743
8779
|
lint: "prettier . --check && eslint",
|
|
8744
|
-
|
|
8780
|
+
prepublishOnly: "npm run docs:generate",
|
|
8745
8781
|
test: "ava",
|
|
8746
8782
|
"test:e2e": "node test/output-snapshots/output.test.js",
|
|
8747
|
-
"test
|
|
8783
|
+
"test:watch": "npm test -- --watch",
|
|
8748
8784
|
typecheck: "tsc --noEmit && tsc-strict",
|
|
8749
|
-
|
|
8785
|
+
"types:generate": "node scripts/generate-types.js",
|
|
8786
|
+
"watch:dev": "node scripts/esbuild.js --link --watch --stage dev",
|
|
8787
|
+
"watch:dev-local": "node scripts/esbuild.js --link --watch --stage dev-local",
|
|
8788
|
+
"watch:prod": "node scripts/esbuild.js --link --watch",
|
|
8789
|
+
"watch:prod-local": "node scripts/esbuild.js --link --watch --stage prod-local"
|
|
8750
8790
|
},
|
|
8751
8791
|
files: [
|
|
8752
8792
|
"scripts/postinstall.js",
|
|
@@ -9121,7 +9161,8 @@ import_commander.program.command("introspect [buildId]").description("Connect to
|
|
|
9121
9161
|
configPath: options == null ? void 0 : options.config
|
|
9122
9162
|
});
|
|
9123
9163
|
}
|
|
9124
|
-
)
|
|
9164
|
+
);
|
|
9165
|
+
import_commander.program.command("whoami").description("Prints the email of the account you're signed into").action(() => {
|
|
9125
9166
|
runCommand(WhoamiCommand_default);
|
|
9126
9167
|
});
|
|
9127
9168
|
var runCommand = (component, props = null, { exitIfOutOfDate = true } = {}) => {
|