@devcontainer-rs/cli 0.0.43 → 0.0.46
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/launcher.js +4 -3
- package/package.json +5 -5
- package/runtime-config.js +20 -0
package/launcher.js
CHANGED
|
@@ -95,12 +95,13 @@ function resolveBinaryPackage(system = {}) {
|
|
|
95
95
|
if (platform === "darwin" && arch === "arm64") {
|
|
96
96
|
return runtimeConfig.supportedTargets["darwin-arm64"];
|
|
97
97
|
}
|
|
98
|
-
if (platform === "linux" && arch === "x64") {
|
|
98
|
+
if (platform === "linux" && (arch === "x64" || arch === "arm64")) {
|
|
99
|
+
const targetArch = arch === "x64" ? "x64" : "arm64";
|
|
99
100
|
const libc = detectLibc(system);
|
|
100
101
|
if (libc === "musl") {
|
|
101
|
-
return runtimeConfig.supportedTargets[
|
|
102
|
+
return runtimeConfig.supportedTargets[`linux-${targetArch}-musl`];
|
|
102
103
|
}
|
|
103
|
-
return runtimeConfig.supportedTargets[
|
|
104
|
+
return runtimeConfig.supportedTargets[`linux-${targetArch}-gnu`];
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
throw new Error(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devcontainer-rs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
4
4
|
"description": "Rust-native devcontainer CLI wrapper package for the upstream @devcontainers/cli shape",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"runtime-config.js"
|
|
23
23
|
],
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@devcontainer-rs/devcontainer-darwin-x64": "0.0.
|
|
26
|
-
"@devcontainer-rs/devcontainer-darwin-arm64": "0.0.
|
|
27
|
-
"@devcontainer-rs/devcontainer-linux-x64-gnu": "0.0.
|
|
28
|
-
"@devcontainer-rs/devcontainer-linux-x64-musl": "0.0.
|
|
25
|
+
"@devcontainer-rs/devcontainer-darwin-x64": "0.0.46",
|
|
26
|
+
"@devcontainer-rs/devcontainer-darwin-arm64": "0.0.46",
|
|
27
|
+
"@devcontainer-rs/devcontainer-linux-x64-gnu": "0.0.46",
|
|
28
|
+
"@devcontainer-rs/devcontainer-linux-x64-musl": "0.0.46"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/runtime-config.js
CHANGED
|
@@ -37,6 +37,26 @@ const supportedTargets = {
|
|
|
37
37
|
cpu: "x64",
|
|
38
38
|
libc: "musl",
|
|
39
39
|
},
|
|
40
|
+
"linux-arm64-gnu": {
|
|
41
|
+
target: "linux-arm64-gnu",
|
|
42
|
+
triple: "aarch64-unknown-linux-gnu",
|
|
43
|
+
archiveSuffix: "linux-arm64-gnu",
|
|
44
|
+
packageName: "@devcontainer-rs/devcontainer-linux-arm64-gnu",
|
|
45
|
+
packageSlug: "devcontainer-rs-devcontainer-linux-arm64-gnu",
|
|
46
|
+
os: "linux",
|
|
47
|
+
cpu: "arm64",
|
|
48
|
+
libc: "glibc",
|
|
49
|
+
},
|
|
50
|
+
"linux-arm64-musl": {
|
|
51
|
+
target: "linux-arm64-musl",
|
|
52
|
+
triple: "aarch64-unknown-linux-musl",
|
|
53
|
+
archiveSuffix: "linux-arm64-musl",
|
|
54
|
+
packageName: "@devcontainer-rs/devcontainer-linux-arm64-musl",
|
|
55
|
+
packageSlug: "devcontainer-rs-devcontainer-linux-arm64-musl",
|
|
56
|
+
os: "linux",
|
|
57
|
+
cpu: "arm64",
|
|
58
|
+
libc: "musl",
|
|
59
|
+
},
|
|
40
60
|
};
|
|
41
61
|
|
|
42
62
|
const wrapperPackages = {
|