@delta-infra/cli 1.0.37 → 1.0.38
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/package.json +1 -1
- package/scripts/install.js +5 -6
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);
|