@delta-infra/cli 1.0.37 → 1.0.39
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/checksums.txt +5 -5
- package/package.json +1 -1
- package/scripts/install.js +5 -6
package/checksums.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
f582eedec50f860c5bf293326f7b25c479f623bde94ead9359045a37c02f065e delta-cli-darwin-amd64.tar.gz
|
|
2
|
+
0ebef0fbf62e62d51af7f6e701134462bd495a791d07e86b268bf10d1bad2f72 delta-cli-darwin-arm64.tar.gz
|
|
3
|
+
61a6c6478c1e4363191c3743732ea4c43c2585c49a1726176d23393d3578faff delta-cli-linux-amd64.tar.gz
|
|
4
|
+
d46e4cac35d42af3c16bab807f0c43b1dd9d0aac7691f80ae6be12673106d610 delta-cli-linux-arm64.tar.gz
|
|
5
|
+
ff38fbf67c71a2ad9d1f8f33546241b63b89ef940f1a0a4db2a67cec9f78e5a4 delta-cli-windows-amd64.zip
|
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -329,20 +329,19 @@ function install() {
|
|
|
329
329
|
try {
|
|
330
330
|
console.error("Downloading from " + downloadUrls[i]);
|
|
331
331
|
download(downloadUrls[i], archivePath);
|
|
332
|
+
console.error("Download complete, verifying checksum...");
|
|
333
|
+
const expectedHash = getExpectedChecksum(archiveName);
|
|
334
|
+
verifyChecksum(archivePath, expectedHash);
|
|
335
|
+
console.error("Checksum verified");
|
|
332
336
|
downloaded = true;
|
|
333
|
-
console.error("Download complete, verifying...");
|
|
334
337
|
break;
|
|
335
338
|
} catch (e) {
|
|
336
|
-
console.error("Failed: " + e.message);
|
|
339
|
+
console.error("Failed: " + e.message + " (" + downloadUrls[i] + ")");
|
|
337
340
|
lastErr = e;
|
|
338
341
|
}
|
|
339
342
|
}
|
|
340
343
|
if (!downloaded) throw lastErr;
|
|
341
344
|
|
|
342
|
-
const expectedHash = getExpectedChecksum(archiveName);
|
|
343
|
-
verifyChecksum(archivePath, expectedHash);
|
|
344
|
-
console.error("Checksum verified");
|
|
345
|
-
|
|
346
345
|
if (isWindows) {
|
|
347
346
|
console.error("Extracting archive...");
|
|
348
347
|
extractZipWindows(archivePath, tmpDir);
|