@todesktop/cli 1.11.0 → 1.11.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 +21 -0
- package/dist/cli.js +29 -10
- package/dist/cli.js.map +2 -2
- package/package.json +2 -2
- package/schemas/schema.json +5 -0
package/README.md
CHANGED
|
@@ -550,6 +550,19 @@ The path to your application's Linux desktop icon. It must be an ICNS or PNG.
|
|
|
550
550
|
|
|
551
551
|
Note: to ensure the icon is never missing (e.g. this happens sometimes in Ubuntu), set the [`icon` option](https://www.electronjs.org/docs/api/browser-window#new-browserwindowoptions) when creating your `BrowserWindow`s.
|
|
552
552
|
|
|
553
|
+
#### `linux.imageVersion` - (optional) string
|
|
554
|
+
|
|
555
|
+
Example: `0.1.0`
|
|
556
|
+
|
|
557
|
+
Default: `0.0.11`
|
|
558
|
+
|
|
559
|
+
The version of the Linux image that ToDesktop should use to build your app.
|
|
560
|
+
|
|
561
|
+
Linux Changelog:
|
|
562
|
+
|
|
563
|
+
- `0.1.0`: Updated g++ → g++10, gcc → gcc10. WARNING: This compiler has been updated to a newer version that is not compatible with older versions of Linux like Ubuntu 20.04. You should probably only use this version if you know what you're doing.
|
|
564
|
+
- `0.0.11`: Updated git 2.25.1 → 2.47.1 node 18.18.2 → 18.20.5
|
|
565
|
+
|
|
553
566
|
### `linux.noSandbox` - (optional) boolean
|
|
554
567
|
|
|
555
568
|
Default: `true`
|
|
@@ -1147,6 +1160,14 @@ Now, when we build your app on ToDesktop servers, it will also run your custom `
|
|
|
1147
1160
|
|
|
1148
1161
|
## Changelog
|
|
1149
1162
|
|
|
1163
|
+
### v1.11.2
|
|
1164
|
+
|
|
1165
|
+
- Stop erroring in cases where `appId` is not defined in an extended `todesktop.json`.
|
|
1166
|
+
|
|
1167
|
+
### v1.11.1
|
|
1168
|
+
|
|
1169
|
+
- You can now specify `linux.imageVersion` to explicitly set the version of the Linux image that ToDesktop should use to build your app.
|
|
1170
|
+
|
|
1150
1171
|
### v1.11.0
|
|
1151
1172
|
|
|
1152
1173
|
- Add additional `id` and `appId` validation when extending another `todesktop.json` file. Can be disabled with the `--ignore-extends-errors` flag.
|
package/dist/cli.js
CHANGED
|
@@ -1659,6 +1659,11 @@ var schema_default = {
|
|
|
1659
1659
|
},
|
|
1660
1660
|
minLength: 3
|
|
1661
1661
|
},
|
|
1662
|
+
imageVersion: {
|
|
1663
|
+
type: "string",
|
|
1664
|
+
minLength: 1,
|
|
1665
|
+
validSemver: {}
|
|
1666
|
+
},
|
|
1662
1667
|
noSandbox: {
|
|
1663
1668
|
type: "boolean"
|
|
1664
1669
|
}
|
|
@@ -2067,11 +2072,17 @@ function computeFullProjectConfig(partialConfig, projectRoot, flags) {
|
|
|
2067
2072
|
);
|
|
2068
2073
|
if ((flags == null ? void 0 : flags.build) && !flags.build.ignoreExtendsErrors) {
|
|
2069
2074
|
const hasSameId = partialConfig.id === parentFullConfig.id;
|
|
2070
|
-
const hasSameAppId = partialConfig.appId === parentFullConfig.appId;
|
|
2075
|
+
const hasSameAppId = partialConfig.appId && parentFullConfig.appId && partialConfig.appId === parentFullConfig.appId;
|
|
2071
2076
|
if (hasSameId || hasSameAppId) {
|
|
2072
2077
|
throw new Error(`
|
|
2073
2078
|
todesktop.json invalid. Cannot have the same "id" or "appId" as an extended todesktop.json file.
|
|
2074
2079
|
|
|
2080
|
+
You can disable this error by running todesktop build with the --ignore-extends-errors flag.`);
|
|
2081
|
+
}
|
|
2082
|
+
if (parentFullConfig.appId && !partialConfig.appId) {
|
|
2083
|
+
throw new Error(`
|
|
2084
|
+
todesktop.json invalid. Please add "appId" to your todesktop.json or remove "appId" from the extended todesktop.json.
|
|
2085
|
+
|
|
2075
2086
|
You can disable this error by running todesktop build with the --ignore-extends-errors flag.`);
|
|
2076
2087
|
}
|
|
2077
2088
|
}
|
|
@@ -2377,7 +2388,14 @@ Your app is larger than ${fileSizeLimit}MB. Your app is ${import_chalk.default.b
|
|
|
2377
2388
|
|
|
2378
2389
|
// src/commands/build/utilities/uploadApplicationSource.ts
|
|
2379
2390
|
var getAppFiles = async (globsInput, appPath, appPkgJson) => {
|
|
2380
|
-
const globs = [
|
|
2391
|
+
const globs = [
|
|
2392
|
+
"!node_modules",
|
|
2393
|
+
"!**/node_modules",
|
|
2394
|
+
"!.git",
|
|
2395
|
+
"!**/.git",
|
|
2396
|
+
"!.gitignore",
|
|
2397
|
+
"!**/.gitignore"
|
|
2398
|
+
];
|
|
2381
2399
|
if (globsInput && globsInput.length) {
|
|
2382
2400
|
globs.push(
|
|
2383
2401
|
...globsInput,
|
|
@@ -2621,7 +2639,7 @@ async function runBuild({
|
|
|
2621
2639
|
updateState,
|
|
2622
2640
|
flags
|
|
2623
2641
|
}) {
|
|
2624
|
-
var _a, _b, _c;
|
|
2642
|
+
var _a, _b, _c, _d;
|
|
2625
2643
|
logForCI_default("Getting application information...");
|
|
2626
2644
|
const primaryUserId = (_a = currentUser()) == null ? void 0 : _a.uid;
|
|
2627
2645
|
const { config: config2, unprocessedConfig } = getProjectConfig(configPath, {
|
|
@@ -2691,17 +2709,18 @@ async function runBuild({
|
|
|
2691
2709
|
logForCI_default("Kicking off build...");
|
|
2692
2710
|
try {
|
|
2693
2711
|
await postToFirebaseFunction_default("kickOffBuild", {
|
|
2712
|
+
appBuilderLibVersion: config2.appBuilderLibVersion,
|
|
2694
2713
|
appId,
|
|
2695
2714
|
appPkgName: appPkgJson.name,
|
|
2696
2715
|
appVersion: appPkgJson.version,
|
|
2697
2716
|
buildId,
|
|
2698
|
-
|
|
2699
|
-
|
|
2717
|
+
idToken: await ((_c = currentUser()) == null ? void 0 : _c.getIdToken()),
|
|
2718
|
+
linuxImageVersion: (_d = config2.linux) == null ? void 0 : _d.imageVersion,
|
|
2700
2719
|
nodeVersion: config2.nodeVersion,
|
|
2701
2720
|
npmVersion: config2.npmVersion,
|
|
2702
2721
|
pnpmVersion: config2.pnpmVersion,
|
|
2703
|
-
|
|
2704
|
-
|
|
2722
|
+
sourceArchiveDetails,
|
|
2723
|
+
userId: primaryUserId
|
|
2705
2724
|
});
|
|
2706
2725
|
} catch (e) {
|
|
2707
2726
|
throw addErrorMessage(e, "Failed while kicking off build");
|
|
@@ -5432,7 +5451,7 @@ var package_default = {
|
|
|
5432
5451
|
access: "public"
|
|
5433
5452
|
},
|
|
5434
5453
|
name: "@todesktop/cli",
|
|
5435
|
-
version: "1.
|
|
5454
|
+
version: "1.11.1",
|
|
5436
5455
|
license: "MIT",
|
|
5437
5456
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
5438
5457
|
homepage: "https://todesktop.com/cli",
|
|
@@ -5517,7 +5536,7 @@ var package_default = {
|
|
|
5517
5536
|
"xdg-basedir": "^4.0.0"
|
|
5518
5537
|
},
|
|
5519
5538
|
devDependencies: {
|
|
5520
|
-
"@todesktop/shared": "^7.
|
|
5539
|
+
"@todesktop/shared": "^7.189.6",
|
|
5521
5540
|
"@types/bunyan": "^1.8.6",
|
|
5522
5541
|
"@types/is-ci": "^3.0.4",
|
|
5523
5542
|
"@types/node": "^20.8.4",
|
|
@@ -5671,7 +5690,7 @@ var configOption = new import_commander.Option(
|
|
|
5671
5690
|
}
|
|
5672
5691
|
return value;
|
|
5673
5692
|
});
|
|
5674
|
-
import_commander.program.name("
|
|
5693
|
+
import_commander.program.name("todesktop").version(getCliVersion_default());
|
|
5675
5694
|
import_commander.program.command("build").description(
|
|
5676
5695
|
"Build an Electron app with native installers, code signing baked-in, etc. but without releasing it (existing users won't get an auto-update). For quicker builds, you can append `--code-sign=false` to disable code-signing and notarization."
|
|
5677
5696
|
).option(
|