dprint 0.30.0 → 0.30.3
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/info.json +6 -5
- package/install.js +12 -2
- package/package.json +1 -1
package/info.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.30.
|
|
2
|
+
"version": "0.30.3",
|
|
3
3
|
"checksums": {
|
|
4
|
-
"windows-x86_64": "
|
|
5
|
-
"darwin-x86_64": "
|
|
6
|
-
"darwin-aarch64": "
|
|
7
|
-
"linux-x86_64": "
|
|
4
|
+
"windows-x86_64": "1d9fa9b6ec8b3afe102a6f9c818114d3f96644261c7dfc4df93dd293d44b2fc1",
|
|
5
|
+
"darwin-x86_64": "a4e27daea3d28052f2ea9585ed962b238af214d7367abb59c14c711e39de737d",
|
|
6
|
+
"darwin-aarch64": "2cdde2accc7fe8f6890ad8632be930987e0e925d8f5e21af0aa2b730b0164c84",
|
|
7
|
+
"linux-x86_64": "cefdc43953d9e20ec136219a33f9b866d67620e11975135a57562c3beb5b4842",
|
|
8
|
+
"linux-aarch64": "98303e7e7a401423605a30df4d403ad7b250e707b94f150b7e04636979bb9ded"
|
|
8
9
|
}
|
|
9
10
|
}
|
package/install.js
CHANGED
|
@@ -65,7 +65,13 @@ function getTarget() {
|
|
|
65
65
|
throw new Error("Unsupported architecture " + os.arch() + ". Only x64 and M1 binaries are available.");
|
|
66
66
|
}
|
|
67
67
|
} else {
|
|
68
|
-
|
|
68
|
+
if (os.arch() === "arm64") {
|
|
69
|
+
return "aarch64-unknown-linux-gnu";
|
|
70
|
+
} else if (os.arch() === "x64") {
|
|
71
|
+
return "x86_64-unknown-linux-gnu";
|
|
72
|
+
} else {
|
|
73
|
+
throw new Error("Unsupported architecture " + os.arch() + ". Only x64 and aarch64 binaries are available.");
|
|
74
|
+
}
|
|
69
75
|
}
|
|
70
76
|
}
|
|
71
77
|
|
|
@@ -134,7 +140,11 @@ function verifyZipChecksum() {
|
|
|
134
140
|
return info.checksums["darwin-x86_64"];
|
|
135
141
|
}
|
|
136
142
|
default:
|
|
137
|
-
|
|
143
|
+
if (os.arch() === "arm64") {
|
|
144
|
+
return info.checksums["linux-aarch64"];
|
|
145
|
+
} else {
|
|
146
|
+
return info.checksums["linux-x86_64"];
|
|
147
|
+
}
|
|
138
148
|
}
|
|
139
149
|
}
|
|
140
150
|
}
|