bunite-core 0.11.3 → 0.11.4
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunite-core",
|
|
3
3
|
"description": "Uniting UI and Bun",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"setup:cef": "bun ../tools/bunite-dev/scripts/setup-cef.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"msgpackr": "^1.11.9"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"bunite-native-win-x64": "0.0.
|
|
27
|
+
"bunite-native-win-x64": "0.0.8",
|
|
28
28
|
"bunite-native-mac-arm64": "0.0.1",
|
|
29
29
|
"bunite-native-linux-x64": "0.0.1"
|
|
30
30
|
}
|
|
@@ -311,6 +311,19 @@ bool initRuntime(const char* engine_dir, bool /*hide_console*/,
|
|
|
311
311
|
|
|
312
312
|
g_runtime.initialized.store(true);
|
|
313
313
|
BUNITE_INFO("webview2: runtime initialized");
|
|
314
|
+
|
|
315
|
+
// Eager-start the WebView2 environment so engine_version_string is ready by
|
|
316
|
+
// the time the first BrowserWindow title is set. Bounded drain — if Edge
|
|
317
|
+
// takes longer than the budget we just fall back to "unknown".
|
|
318
|
+
ensureEnvironment([]() {});
|
|
319
|
+
auto t0 = std::chrono::steady_clock::now();
|
|
320
|
+
while (!g_runtime.env_ready && !g_runtime.shutting_down.load() &&
|
|
321
|
+
std::chrono::duration_cast<std::chrono::milliseconds>(
|
|
322
|
+
std::chrono::steady_clock::now() - t0).count() < 500) {
|
|
323
|
+
pumpOnce();
|
|
324
|
+
Sleep(1);
|
|
325
|
+
}
|
|
326
|
+
|
|
314
327
|
return true;
|
|
315
328
|
}
|
|
316
329
|
|