win_webview2 1.1.17 → 1.1.18
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.
|
@@ -39,6 +39,13 @@ async function downloadModuleFile(platform) {
|
|
|
39
39
|
}
|
|
40
40
|
await (0, downloader_1.downloadFile)(url, filePath);
|
|
41
41
|
}
|
|
42
|
+
async function sleep(n) {
|
|
43
|
+
return new Promise((r, x) => {
|
|
44
|
+
setTimeout(() => {
|
|
45
|
+
r(null);
|
|
46
|
+
}, n);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
42
49
|
async function downloadModuleAndExtract(platform) {
|
|
43
50
|
await downloadModuleFile(platform);
|
|
44
51
|
let modulePath = (0, dirnameTool_1.getWWVNodeModuleFolder)();
|
|
@@ -46,7 +53,7 @@ async function downloadModuleAndExtract(platform) {
|
|
|
46
53
|
let fileName = platform + ".zip";
|
|
47
54
|
let filePath = node_path_1.default.join(winlibPath, fileName);
|
|
48
55
|
extractZip(filePath, node_path_1.default.join(winlibPath, platform));
|
|
49
|
-
await (
|
|
56
|
+
await sleep(1000);
|
|
50
57
|
}
|
|
51
58
|
function getCurrentPlatform() {
|
|
52
59
|
let result = "x64";
|