@todesktop/cli 1.7.0-3 → 1.7.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/dist/cli.js +25 -10
- package/dist/cli.js.map +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4501,7 +4501,7 @@ function isTestRunning(build) {
|
|
|
4501
4501
|
return !isFinished;
|
|
4502
4502
|
}
|
|
4503
4503
|
function makeProgress(build) {
|
|
4504
|
-
var _a, _b, _c, _d, _e, _f;
|
|
4504
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
4505
4505
|
const def = {
|
|
4506
4506
|
progress: 0,
|
|
4507
4507
|
state: "progress",
|
|
@@ -4509,22 +4509,34 @@ function makeProgress(build) {
|
|
|
4509
4509
|
};
|
|
4510
4510
|
const linux = {
|
|
4511
4511
|
...((_a = build.smokeTest) == null ? void 0 : _a.linux) || def,
|
|
4512
|
-
shouldSkip: ((_b = build.linux) == null ? void 0 : _b.shouldSkip) || false
|
|
4512
|
+
shouldSkip: ((_b = build.linux) == null ? void 0 : _b.shouldSkip) || false,
|
|
4513
|
+
message: ((_d = (_c = build.smokeTest) == null ? void 0 : _c.linux) == null ? void 0 : _d.message) || "Starting"
|
|
4513
4514
|
};
|
|
4514
4515
|
const mac = {
|
|
4515
|
-
...((
|
|
4516
|
-
shouldSkip: ((
|
|
4516
|
+
...((_e = build.smokeTest) == null ? void 0 : _e.mac) || def,
|
|
4517
|
+
shouldSkip: ((_f = build.mac) == null ? void 0 : _f.shouldSkip) || false,
|
|
4518
|
+
message: ((_h = (_g = build.smokeTest) == null ? void 0 : _g.mac) == null ? void 0 : _h.message) || "Starting"
|
|
4517
4519
|
};
|
|
4518
4520
|
const windows = {
|
|
4519
|
-
...((
|
|
4520
|
-
shouldSkip: ((
|
|
4521
|
+
...((_i = build.smokeTest) == null ? void 0 : _i.windows) || def,
|
|
4522
|
+
shouldSkip: ((_j = build.windows) == null ? void 0 : _j.shouldSkip) || false,
|
|
4523
|
+
message: ((_l = (_k = build.smokeTest) == null ? void 0 : _k.windows) == null ? void 0 : _l.message) || "Starting"
|
|
4521
4524
|
};
|
|
4522
4525
|
const platforms = [linux, mac, windows].filter(
|
|
4523
4526
|
(p) => !p.shouldSkip && p.state !== "skipped"
|
|
4524
4527
|
);
|
|
4525
|
-
const
|
|
4528
|
+
const platformArr = ["mac", "windows", "linux"];
|
|
4529
|
+
const isRunning = platformArr.some(
|
|
4530
|
+
(platform) => {
|
|
4531
|
+
var _a2;
|
|
4532
|
+
return Boolean(
|
|
4533
|
+
build.smokeTest && ((_a2 = build.smokeTest[platform]) == null ? void 0 : _a2.state) === "progress" && !build.smokeTest.isCanceled
|
|
4534
|
+
);
|
|
4535
|
+
}
|
|
4536
|
+
);
|
|
4537
|
+
const isFinished = !isRunning;
|
|
4526
4538
|
let totalState = "progress";
|
|
4527
|
-
if (build.smokeTest.isCanceled) {
|
|
4539
|
+
if ((_m = build.smokeTest) == null ? void 0 : _m.isCanceled) {
|
|
4528
4540
|
totalState = "canceled";
|
|
4529
4541
|
} else if (platforms.every((p) => p.state === "done")) {
|
|
4530
4542
|
totalState = "done";
|
|
@@ -4687,7 +4699,10 @@ function SmokeTestContainer({
|
|
|
4687
4699
|
configPath
|
|
4688
4700
|
}) {
|
|
4689
4701
|
const exit = useExit_default();
|
|
4690
|
-
const [state, setState] = (0, import_react22.useState)({
|
|
4702
|
+
const [state, setState] = (0, import_react22.useState)({
|
|
4703
|
+
buildId,
|
|
4704
|
+
state: "loading"
|
|
4705
|
+
});
|
|
4691
4706
|
const [abortController] = (0, import_react22.useState)(new AbortController());
|
|
4692
4707
|
const abortSignal = abortController.signal;
|
|
4693
4708
|
(0, import_react22.useEffect)(() => {
|
|
@@ -4820,7 +4835,7 @@ var package_default = {
|
|
|
4820
4835
|
access: "public"
|
|
4821
4836
|
},
|
|
4822
4837
|
name: "@todesktop/cli",
|
|
4823
|
-
version: "1.7.0-
|
|
4838
|
+
version: "1.7.0-4",
|
|
4824
4839
|
license: "MIT",
|
|
4825
4840
|
author: "Dave Jeffery <dave@todesktop.com> (http://www.todesktop.com/)",
|
|
4826
4841
|
homepage: "https://todesktop.com/cli",
|