@byteplus/ark-cli 1.0.12-probe.478f90ffc633 → 1.0.13-prerelease.488138e59a5e
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/manifest.json +15 -15
- package/package.json +1 -1
- package/scripts/postinstall.js +8 -4
package/manifest.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@byteplus/ark-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13-prerelease.488138e59a5e",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"darwin-amd64": {
|
|
6
6
|
"kind": "cdn",
|
|
7
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
8
|
-
"sha256": "
|
|
7
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-darwin-amd64",
|
|
8
|
+
"sha256": "21bb30c938a3d07d900c7b4619ca2cd2ed8c8cec0abf9b954b1a4a343c5189f7"
|
|
9
9
|
},
|
|
10
10
|
"darwin-arm64": {
|
|
11
11
|
"kind": "cdn",
|
|
12
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
13
|
-
"sha256": "
|
|
12
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-darwin-arm64",
|
|
13
|
+
"sha256": "e4860e7ca763c3c19b4ace648e54bee39458dfdcd2dd802f620cc141779aa0cc"
|
|
14
14
|
},
|
|
15
15
|
"linux-amd64": {
|
|
16
16
|
"kind": "cdn",
|
|
17
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
18
|
-
"sha256": "
|
|
17
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-linux-amd64",
|
|
18
|
+
"sha256": "73f74bf94a57c7eefb7e3e51bd8b278427f15cf4566814b9edb4e7887a982a07"
|
|
19
19
|
},
|
|
20
20
|
"linux-arm64": {
|
|
21
21
|
"kind": "cdn",
|
|
22
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
23
|
-
"sha256": "
|
|
22
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-linux-arm64",
|
|
23
|
+
"sha256": "043760705761566c9e5267ff70cd9cd0fd3e62a1d0a7ad20f5f2f0e83f6f4115"
|
|
24
24
|
},
|
|
25
25
|
"windows-amd64": {
|
|
26
26
|
"kind": "cdn",
|
|
27
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
28
|
-
"sha256": "
|
|
27
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-windows-amd64.exe",
|
|
28
|
+
"sha256": "c2922fd3276bb365ca15254be1a5e24c53d4644890ae9555b075cf4f9fa5a15b"
|
|
29
29
|
},
|
|
30
30
|
"windows-arm64": {
|
|
31
31
|
"kind": "cdn",
|
|
32
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
33
|
-
"sha256": "
|
|
32
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/arkcli-1.0.13-prerelease.488138e59a5e-windows-arm64.exe",
|
|
33
|
+
"sha256": "d00b67b3060dae56cedcc984b616e13148a286d7fc5cb8867d015171180bc327"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"skills": {
|
|
37
37
|
"primary": {
|
|
38
38
|
"kind": "cdn",
|
|
39
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
40
|
-
"sha256": "
|
|
39
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prerelease/1.0.13-prerelease.488138e59a5e/skills.tar.gz",
|
|
40
|
+
"sha256": "7c974ce0c8b11dead8d3b481e07beca38dbee2861961c247951edf41f2adf765"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -55,11 +55,15 @@ const stableVersionPattern =
|
|
|
55
55
|
/^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/;
|
|
56
56
|
const probeVersionPattern =
|
|
57
57
|
/^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)-probe\.[0-9a-f]{12}$/;
|
|
58
|
+
const prereleaseVersionPattern =
|
|
59
|
+
/^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)-prerelease\.[0-9a-f]{12}$/;
|
|
58
60
|
const packageVersion = packageJSON.version || "";
|
|
59
61
|
const isProbe = probeVersionPattern.test(packageVersion);
|
|
62
|
+
const isPrerelease = prereleaseVersionPattern.test(packageVersion);
|
|
63
|
+
const isNonStable = isProbe || isPrerelease;
|
|
60
64
|
if (
|
|
61
65
|
packageJSON.name !== PACKAGE_NAME ||
|
|
62
|
-
(!stableVersionPattern.test(packageVersion) && !
|
|
66
|
+
(!stableVersionPattern.test(packageVersion) && !isNonStable)
|
|
63
67
|
) {
|
|
64
68
|
console.error(`${PACKAGE_NAME}: package identity is missing or malformed`);
|
|
65
69
|
process.exit(1);
|
|
@@ -81,9 +85,9 @@ if (!/^[0-9a-f]{64}$/i.test(entry.sha256 || "")) {
|
|
|
81
85
|
console.error(`${PACKAGE_NAME}: manifest has a missing or malformed sha256 for ${key}`);
|
|
82
86
|
process.exit(1);
|
|
83
87
|
}
|
|
84
|
-
if (
|
|
88
|
+
if (isNonStable) {
|
|
85
89
|
if (Object.prototype.hasOwnProperty.call(entry, "fallback")) {
|
|
86
|
-
console.error(`${PACKAGE_NAME}:
|
|
90
|
+
console.error(`${PACKAGE_NAME}: non-stable manifest must not claim a GitHub Release fallback for ${key}`);
|
|
87
91
|
process.exit(1);
|
|
88
92
|
}
|
|
89
93
|
} else {
|
|
@@ -305,7 +309,7 @@ async function install() {
|
|
|
305
309
|
let installedFrom;
|
|
306
310
|
try {
|
|
307
311
|
const sources = [{ kind: "cdn", url: entry.url }];
|
|
308
|
-
if (!
|
|
312
|
+
if (!isNonStable) {
|
|
309
313
|
sources.push({ kind: "github-release", url: entry.fallback.url });
|
|
310
314
|
}
|
|
311
315
|
installedFrom = await downloadVerifiedBinary(
|