@todesktop/cli 1.7.0-0 → 1.7.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/dist/cli.js +32 -17
- package/dist/cli.js.map +2 -2
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -4076,7 +4076,7 @@ var PickBuildForRelease = ({ commandUsed, shouldConfirm, configPath }) => {
|
|
|
4076
4076
|
] });
|
|
4077
4077
|
} else {
|
|
4078
4078
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_ink30.Box, { children: [
|
|
4079
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ink30.Text, { children: "No
|
|
4079
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ink30.Text, { children: "No eligible builds found " }),
|
|
4080
4080
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_ink30.Text, { dimColor: true, children: "(i.e. unreleased and successful)" })
|
|
4081
4081
|
] });
|
|
4082
4082
|
}
|
|
@@ -4198,7 +4198,7 @@ function BuildPicker({
|
|
|
4198
4198
|
case "no-builds":
|
|
4199
4199
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_ink32.Box, { children: [
|
|
4200
4200
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ink32.Text, { children: "No eligible builds found " }),
|
|
4201
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ink32.Text, { dimColor: true, children: "(
|
|
4201
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_ink32.Text, { dimColor: true, children: "(candidates for smoke-test must be built with @todesktop/runtime@1.2.1 or later)" })
|
|
4202
4202
|
] });
|
|
4203
4203
|
case "selected":
|
|
4204
4204
|
return children(state.selectedBuildId);
|
|
@@ -4399,9 +4399,9 @@ function TestProgress({
|
|
|
4399
4399
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(LoadingText_default, { text: "Loading test stats" });
|
|
4400
4400
|
}
|
|
4401
4401
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
|
|
4402
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(OsProgress, { os: "Windows", progress: progress.windows }),
|
|
4403
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(OsProgress, { os: "macOS", progress: progress.mac }),
|
|
4404
|
-
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(OsProgress, { os: "Linux", progress: progress.linux })
|
|
4402
|
+
!progress.windows.shouldSkip && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(OsProgress, { os: "Windows", progress: progress.windows }),
|
|
4403
|
+
!progress.mac.shouldSkip && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(OsProgress, { os: "macOS", progress: progress.mac }),
|
|
4404
|
+
!progress.linux.shouldSkip && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(OsProgress, { os: "Linux", progress: progress.linux })
|
|
4405
4405
|
] });
|
|
4406
4406
|
}
|
|
4407
4407
|
function OsProgress({
|
|
@@ -4457,7 +4457,7 @@ function SmokeTestView({
|
|
|
4457
4457
|
BuildError,
|
|
4458
4458
|
{
|
|
4459
4459
|
build: state.build,
|
|
4460
|
-
message: (_d = (_c = state.progress) == null ? void 0 : _c.total) == null ? void 0 : _d.
|
|
4460
|
+
message: (_d = (_c = state.progress) == null ? void 0 : _c.total) == null ? void 0 : _d.error
|
|
4461
4461
|
}
|
|
4462
4462
|
)
|
|
4463
4463
|
] });
|
|
@@ -4525,7 +4525,7 @@ async function cancelSmokeTest({
|
|
|
4525
4525
|
buildId,
|
|
4526
4526
|
userId
|
|
4527
4527
|
}) {
|
|
4528
|
-
await postToFirebaseFunction_default("
|
|
4528
|
+
await postToFirebaseFunction_default("cancelSmokeTest_HTTP", {
|
|
4529
4529
|
appId,
|
|
4530
4530
|
buildId,
|
|
4531
4531
|
userId
|
|
@@ -4563,7 +4563,7 @@ async function queueSmokeTest({
|
|
|
4563
4563
|
userId
|
|
4564
4564
|
}) {
|
|
4565
4565
|
try {
|
|
4566
|
-
await postToFirebaseFunction_default("
|
|
4566
|
+
await postToFirebaseFunction_default("queueSmokeTest_HTTP", {
|
|
4567
4567
|
appId,
|
|
4568
4568
|
buildId,
|
|
4569
4569
|
nodeVersion,
|
|
@@ -4605,9 +4605,27 @@ async function waitUntilFinished({
|
|
|
4605
4605
|
});
|
|
4606
4606
|
}
|
|
4607
4607
|
function makeProgress(build) {
|
|
4608
|
-
|
|
4609
|
-
const
|
|
4610
|
-
|
|
4608
|
+
var _a, _b, _c, _d, _e, _f;
|
|
4609
|
+
const def = {
|
|
4610
|
+
progress: 0,
|
|
4611
|
+
state: "progress",
|
|
4612
|
+
shouldSkip: false
|
|
4613
|
+
};
|
|
4614
|
+
const linux = {
|
|
4615
|
+
...((_a = build.smokeTest) == null ? void 0 : _a.linux) || def,
|
|
4616
|
+
shouldSkip: ((_b = build.linux) == null ? void 0 : _b.shouldSkip) || false
|
|
4617
|
+
};
|
|
4618
|
+
const mac = {
|
|
4619
|
+
...((_c = build.smokeTest) == null ? void 0 : _c.mac) || def,
|
|
4620
|
+
shouldSkip: ((_d = build.mac) == null ? void 0 : _d.shouldSkip) || false
|
|
4621
|
+
};
|
|
4622
|
+
const windows = {
|
|
4623
|
+
...((_e = build.smokeTest) == null ? void 0 : _e.windows) || def,
|
|
4624
|
+
shouldSkip: ((_f = build.windows) == null ? void 0 : _f.shouldSkip) || false
|
|
4625
|
+
};
|
|
4626
|
+
const platforms = [linux, mac, windows].filter(
|
|
4627
|
+
(p) => !p.shouldSkip
|
|
4628
|
+
);
|
|
4611
4629
|
const isFinished = platforms.every((p) => p.state !== "progress");
|
|
4612
4630
|
let totalState = "progress";
|
|
4613
4631
|
if (platforms.every((p) => p.state === "done")) {
|
|
@@ -4621,10 +4639,7 @@ function makeProgress(build) {
|
|
|
4621
4639
|
mac,
|
|
4622
4640
|
windows,
|
|
4623
4641
|
total: {
|
|
4624
|
-
|
|
4625
|
-
progress: Math.round(
|
|
4626
|
-
(linux.progress + mac.progress + windows.progress) / 3
|
|
4627
|
-
),
|
|
4642
|
+
error: platforms.filter((p) => p.state === "error").map((p) => p.message).join("\n\n"),
|
|
4628
4643
|
state: totalState
|
|
4629
4644
|
}
|
|
4630
4645
|
};
|
|
@@ -4795,7 +4810,7 @@ var package_default = {
|
|
|
4795
4810
|
access: "public"
|
|
4796
4811
|
},
|
|
4797
4812
|
name: "@todesktop/cli",
|
|
4798
|
-
version: "1.
|
|
4813
|
+
version: "1.7.0-0",
|
|
4799
4814
|
license: "MIT",
|
|
4800
4815
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
4801
4816
|
homepage: "https://todesktop.com/cli",
|
|
@@ -4875,7 +4890,7 @@ var package_default = {
|
|
|
4875
4890
|
"xdg-basedir": "^4.0.0"
|
|
4876
4891
|
},
|
|
4877
4892
|
devDependencies: {
|
|
4878
|
-
"@todesktop/shared": "^7.
|
|
4893
|
+
"@todesktop/shared": "^7.178.0",
|
|
4879
4894
|
"@types/bunyan": "^1.8.6",
|
|
4880
4895
|
"@types/react": "^18.0.26",
|
|
4881
4896
|
"@typescript-eslint/eslint-plugin": "^5.46.1",
|