@todesktop/cli 1.11.0 → 1.11.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 +17 -0
- package/dist/cli.js +22 -9
- 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,10 @@ 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.1
|
|
1164
|
+
|
|
1165
|
+
- You can now specify `linux.imageVersion` to explicitly set the version of the Linux image that ToDesktop should use to build your app.
|
|
1166
|
+
|
|
1150
1167
|
### v1.11.0
|
|
1151
1168
|
|
|
1152
1169
|
- 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
|
}
|
|
@@ -2377,7 +2382,14 @@ Your app is larger than ${fileSizeLimit}MB. Your app is ${import_chalk.default.b
|
|
|
2377
2382
|
|
|
2378
2383
|
// src/commands/build/utilities/uploadApplicationSource.ts
|
|
2379
2384
|
var getAppFiles = async (globsInput, appPath, appPkgJson) => {
|
|
2380
|
-
const globs = [
|
|
2385
|
+
const globs = [
|
|
2386
|
+
"!node_modules",
|
|
2387
|
+
"!**/node_modules",
|
|
2388
|
+
"!.git",
|
|
2389
|
+
"!**/.git",
|
|
2390
|
+
"!.gitignore",
|
|
2391
|
+
"!**/.gitignore"
|
|
2392
|
+
];
|
|
2381
2393
|
if (globsInput && globsInput.length) {
|
|
2382
2394
|
globs.push(
|
|
2383
2395
|
...globsInput,
|
|
@@ -2621,7 +2633,7 @@ async function runBuild({
|
|
|
2621
2633
|
updateState,
|
|
2622
2634
|
flags
|
|
2623
2635
|
}) {
|
|
2624
|
-
var _a, _b, _c;
|
|
2636
|
+
var _a, _b, _c, _d;
|
|
2625
2637
|
logForCI_default("Getting application information...");
|
|
2626
2638
|
const primaryUserId = (_a = currentUser()) == null ? void 0 : _a.uid;
|
|
2627
2639
|
const { config: config2, unprocessedConfig } = getProjectConfig(configPath, {
|
|
@@ -2691,17 +2703,18 @@ async function runBuild({
|
|
|
2691
2703
|
logForCI_default("Kicking off build...");
|
|
2692
2704
|
try {
|
|
2693
2705
|
await postToFirebaseFunction_default("kickOffBuild", {
|
|
2706
|
+
appBuilderLibVersion: config2.appBuilderLibVersion,
|
|
2694
2707
|
appId,
|
|
2695
2708
|
appPkgName: appPkgJson.name,
|
|
2696
2709
|
appVersion: appPkgJson.version,
|
|
2697
2710
|
buildId,
|
|
2698
|
-
|
|
2699
|
-
|
|
2711
|
+
idToken: await ((_c = currentUser()) == null ? void 0 : _c.getIdToken()),
|
|
2712
|
+
linuxImageVersion: (_d = config2.linux) == null ? void 0 : _d.imageVersion,
|
|
2700
2713
|
nodeVersion: config2.nodeVersion,
|
|
2701
2714
|
npmVersion: config2.npmVersion,
|
|
2702
2715
|
pnpmVersion: config2.pnpmVersion,
|
|
2703
|
-
|
|
2704
|
-
|
|
2716
|
+
sourceArchiveDetails,
|
|
2717
|
+
userId: primaryUserId
|
|
2705
2718
|
});
|
|
2706
2719
|
} catch (e) {
|
|
2707
2720
|
throw addErrorMessage(e, "Failed while kicking off build");
|
|
@@ -5432,7 +5445,7 @@ var package_default = {
|
|
|
5432
5445
|
access: "public"
|
|
5433
5446
|
},
|
|
5434
5447
|
name: "@todesktop/cli",
|
|
5435
|
-
version: "1.
|
|
5448
|
+
version: "1.11.0",
|
|
5436
5449
|
license: "MIT",
|
|
5437
5450
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
5438
5451
|
homepage: "https://todesktop.com/cli",
|
|
@@ -5517,7 +5530,7 @@ var package_default = {
|
|
|
5517
5530
|
"xdg-basedir": "^4.0.0"
|
|
5518
5531
|
},
|
|
5519
5532
|
devDependencies: {
|
|
5520
|
-
"@todesktop/shared": "^7.
|
|
5533
|
+
"@todesktop/shared": "^7.189.6",
|
|
5521
5534
|
"@types/bunyan": "^1.8.6",
|
|
5522
5535
|
"@types/is-ci": "^3.0.4",
|
|
5523
5536
|
"@types/node": "^20.8.4",
|
|
@@ -5671,7 +5684,7 @@ var configOption = new import_commander.Option(
|
|
|
5671
5684
|
}
|
|
5672
5685
|
return value;
|
|
5673
5686
|
});
|
|
5674
|
-
import_commander.program.name("
|
|
5687
|
+
import_commander.program.name("todesktop").version(getCliVersion_default());
|
|
5675
5688
|
import_commander.program.command("build").description(
|
|
5676
5689
|
"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
5690
|
).option(
|