@byteplus/ark-cli 1.0.11-beta.84c140b → 1.0.11
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 +44 -15
- package/package.json +1 -1
- package/scripts/postinstall.js +15 -22
package/manifest.json
CHANGED
|
@@ -1,43 +1,72 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@byteplus/ark-cli",
|
|
3
|
-
"version": "1.0.11
|
|
3
|
+
"version": "1.0.11",
|
|
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/prod/1.0.11/arkcli-1.0.11-darwin-amd64",
|
|
8
|
+
"sha256": "c0ad60daedaf0838f3fa8007a9408fd3dca40d6eec5ef6e7c98063876d8e4f7e",
|
|
9
|
+
"fallback": {
|
|
10
|
+
"kind": "github-release",
|
|
11
|
+
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-darwin-amd64"
|
|
12
|
+
}
|
|
9
13
|
},
|
|
10
14
|
"darwin-arm64": {
|
|
11
15
|
"kind": "cdn",
|
|
12
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
13
|
-
"sha256": "
|
|
16
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/arkcli-1.0.11-darwin-arm64",
|
|
17
|
+
"sha256": "beb6849a7bc2dea9f05de84d5c785d9309c08379504041fba3d34de220f19fa9",
|
|
18
|
+
"fallback": {
|
|
19
|
+
"kind": "github-release",
|
|
20
|
+
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-darwin-arm64"
|
|
21
|
+
}
|
|
14
22
|
},
|
|
15
23
|
"linux-amd64": {
|
|
16
24
|
"kind": "cdn",
|
|
17
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
18
|
-
"sha256": "
|
|
25
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/arkcli-1.0.11-linux-amd64",
|
|
26
|
+
"sha256": "e1bb957628062241d079fdf601e29969b5c51727dc0ca6f9415cd6ff3a7bb48b",
|
|
27
|
+
"fallback": {
|
|
28
|
+
"kind": "github-release",
|
|
29
|
+
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-linux-amd64"
|
|
30
|
+
}
|
|
19
31
|
},
|
|
20
32
|
"linux-arm64": {
|
|
21
33
|
"kind": "cdn",
|
|
22
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
23
|
-
"sha256": "
|
|
34
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/arkcli-1.0.11-linux-arm64",
|
|
35
|
+
"sha256": "a87b9abbb970543845658cc16f95c68d48955c929a35cc282d2c7d581a2edaff",
|
|
36
|
+
"fallback": {
|
|
37
|
+
"kind": "github-release",
|
|
38
|
+
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-linux-arm64"
|
|
39
|
+
}
|
|
24
40
|
},
|
|
25
41
|
"windows-amd64": {
|
|
26
42
|
"kind": "cdn",
|
|
27
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
28
|
-
"sha256": "
|
|
43
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/arkcli-1.0.11-windows-amd64.exe",
|
|
44
|
+
"sha256": "aab29d7cc0c4822c40e0d9b44bbd20dad7aced68b2681335f047db2f33c40033",
|
|
45
|
+
"fallback": {
|
|
46
|
+
"kind": "github-release",
|
|
47
|
+
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-windows-amd64.exe"
|
|
48
|
+
}
|
|
29
49
|
},
|
|
30
50
|
"windows-arm64": {
|
|
31
51
|
"kind": "cdn",
|
|
32
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
33
|
-
"sha256": "
|
|
52
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/arkcli-1.0.11-windows-arm64.exe",
|
|
53
|
+
"sha256": "032154e1b23a25743b6dc6873a5e6256c95f348894050156dd75ea0fbf61a731",
|
|
54
|
+
"fallback": {
|
|
55
|
+
"kind": "github-release",
|
|
56
|
+
"url": "https://github.com/byteplus-sdk/ark-cli/releases/download/v1.0.11/arkcli-1.0.11-windows-arm64.exe"
|
|
57
|
+
}
|
|
34
58
|
}
|
|
35
59
|
},
|
|
36
60
|
"skills": {
|
|
37
61
|
"primary": {
|
|
38
62
|
"kind": "cdn",
|
|
39
|
-
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/
|
|
40
|
-
"sha256": "
|
|
63
|
+
"url": "https://sf16-sg.tiktokcdn.com/obj/eden-sg/psjryh/ljhwZthlaukjlkulzlp/prod/1.0.11/skills.tar.gz",
|
|
64
|
+
"sha256": "db89be881c9bf3838af2a00f11f23bdc7f2d41ea394238460521fa4b0f8da0fb"
|
|
65
|
+
},
|
|
66
|
+
"tag": "v1.0.11",
|
|
67
|
+
"fallback": {
|
|
68
|
+
"kind": "github",
|
|
69
|
+
"url": "https://github.com/byteplus-sdk/ark-cli/archive/refs/tags/v1.0.11.tar.gz"
|
|
41
70
|
}
|
|
42
71
|
}
|
|
43
72
|
}
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -51,12 +51,7 @@ try {
|
|
|
51
51
|
process.exit(1);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
const betaProbeVersionPattern =
|
|
56
|
-
/^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)-beta\.[0-9a-f]{7}$/;
|
|
57
|
-
const isStableVersion = stableVersionPattern.test(packageJSON.version || "");
|
|
58
|
-
const isBetaProbeVersion = betaProbeVersionPattern.test(packageJSON.version || "");
|
|
59
|
-
if (packageJSON.name !== PACKAGE_NAME || (!isStableVersion && !isBetaProbeVersion)) {
|
|
54
|
+
if (packageJSON.name !== PACKAGE_NAME || !/^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/.test(packageJSON.version || "")) {
|
|
60
55
|
console.error(`${PACKAGE_NAME}: package identity is missing or malformed`);
|
|
61
56
|
process.exit(1);
|
|
62
57
|
}
|
|
@@ -77,17 +72,12 @@ if (!/^[0-9a-f]{64}$/i.test(entry.sha256 || "")) {
|
|
|
77
72
|
console.error(`${PACKAGE_NAME}: manifest has a missing or malformed sha256 for ${key}`);
|
|
78
73
|
process.exit(1);
|
|
79
74
|
}
|
|
80
|
-
if (
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
console.error(`${PACKAGE_NAME}: manifest has no GitHub Release fallback for ${key}`);
|
|
87
|
-
process.exit(1);
|
|
88
|
-
}
|
|
89
|
-
} else if (Object.prototype.hasOwnProperty.call(entry, "fallback")) {
|
|
90
|
-
console.error(`${PACKAGE_NAME}: temporary beta manifest must be CDN-only for ${key}`);
|
|
75
|
+
if (
|
|
76
|
+
!entry.fallback ||
|
|
77
|
+
entry.fallback.kind !== "github-release" ||
|
|
78
|
+
typeof entry.fallback.url !== "string"
|
|
79
|
+
) {
|
|
80
|
+
console.error(`${PACKAGE_NAME}: manifest has no GitHub Release fallback for ${key}`);
|
|
91
81
|
process.exit(1);
|
|
92
82
|
}
|
|
93
83
|
|
|
@@ -298,11 +288,14 @@ async function install() {
|
|
|
298
288
|
|
|
299
289
|
let installedFrom;
|
|
300
290
|
try {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
291
|
+
installedFrom = await downloadVerifiedBinary(
|
|
292
|
+
[
|
|
293
|
+
{ kind: "cdn", url: entry.url },
|
|
294
|
+
{ kind: "github-release", url: entry.fallback.url },
|
|
295
|
+
],
|
|
296
|
+
tempPath,
|
|
297
|
+
entry.sha256,
|
|
298
|
+
);
|
|
306
299
|
} catch (err) {
|
|
307
300
|
fs.rmSync(tempPath, { force: true });
|
|
308
301
|
throw new Error(`binary download failed: ${err.message || err}`);
|