bun-app-window 0.1.0 → 0.2.2

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.
Files changed (91) hide show
  1. package/CHANGELOG.md +202 -0
  2. package/README.md +35 -3
  3. package/README.zh-CN.md +35 -3
  4. package/README.zh-TW.md +35 -3
  5. package/dist/libshell.dll +0 -0
  6. package/package.json +8 -10
  7. package/src/shell/native-asset.d.ts +18 -0
  8. package/src/shell/resolve.ts +1 -1
  9. package/native/build.ps1 +0 -67
  10. package/native/fetch.ps1 +0 -66
  11. package/native/shell.cc +0 -2134
  12. package/vendor/webview/compatibility/CMakeLists.txt +0 -3
  13. package/vendor/webview/compatibility/mingw/CMakeLists.txt +0 -14
  14. package/vendor/webview/compatibility/mingw/include/EventToken.h +0 -25
  15. package/vendor/webview/core/CMakeLists.txt +0 -94
  16. package/vendor/webview/core/include/webview/api.h +0 -251
  17. package/vendor/webview/core/include/webview/backends.hh +0 -40
  18. package/vendor/webview/core/include/webview/c_api_impl.hh +0 -258
  19. package/vendor/webview/core/include/webview/detail/backends/cocoa_webkit.hh +0 -626
  20. package/vendor/webview/core/include/webview/detail/backends/gtk_webkitgtk.hh +0 -355
  21. package/vendor/webview/core/include/webview/detail/backends/win32_edge.hh +0 -909
  22. package/vendor/webview/core/include/webview/detail/basic_result.hh +0 -119
  23. package/vendor/webview/core/include/webview/detail/engine_base.hh +0 -382
  24. package/vendor/webview/core/include/webview/detail/exceptions.hh +0 -42
  25. package/vendor/webview/core/include/webview/detail/json.hh +0 -337
  26. package/vendor/webview/core/include/webview/detail/native_library.hh +0 -170
  27. package/vendor/webview/core/include/webview/detail/optional.hh +0 -118
  28. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSApplication.hh +0 -107
  29. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSBundle.hh +0 -56
  30. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSEvent.hh +0 -71
  31. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSInvocation.hh +0 -66
  32. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSMethodSignature.hh +0 -52
  33. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSNotification.hh +0 -51
  34. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSNumber.hh +0 -53
  35. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSObject.hh +0 -51
  36. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSOpenPanel.hh +0 -71
  37. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSPoint.hh +0 -53
  38. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSRect.hh +0 -53
  39. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSSavePanel.hh +0 -52
  40. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSSize.hh +0 -53
  41. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSString.hh +0 -87
  42. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSURL.hh +0 -63
  43. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSURLRequest.hh +0 -52
  44. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSValue.hh +0 -56
  45. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSView.hh +0 -91
  46. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/NSWindow.hh +0 -137
  47. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/cocoa.hh +0 -59
  48. package/vendor/webview/core/include/webview/detail/platform/darwin/cocoa/types.hh +0 -49
  49. package/vendor/webview/core/include/webview/detail/platform/darwin/objc/Class.hh +0 -55
  50. package/vendor/webview/core/include/webview/detail/platform/darwin/objc/autoreleasepool.hh +0 -70
  51. package/vendor/webview/core/include/webview/detail/platform/darwin/objc/invoke.hh +0 -75
  52. package/vendor/webview/core/include/webview/detail/platform/darwin/objc/memory.hh +0 -57
  53. package/vendor/webview/core/include/webview/detail/platform/darwin/objc/objc.hh +0 -47
  54. package/vendor/webview/core/include/webview/detail/platform/darwin/webkit/WKOpenPanelParameters.hh +0 -57
  55. package/vendor/webview/core/include/webview/detail/platform/darwin/webkit/WKScriptMessage.hh +0 -51
  56. package/vendor/webview/core/include/webview/detail/platform/darwin/webkit/WKUserContentController.hh +0 -61
  57. package/vendor/webview/core/include/webview/detail/platform/darwin/webkit/WKUserScript.hh +0 -71
  58. package/vendor/webview/core/include/webview/detail/platform/darwin/webkit/WKWebView.hh +0 -108
  59. package/vendor/webview/core/include/webview/detail/platform/darwin/webkit/WKWebViewConfiguration.hh +0 -60
  60. package/vendor/webview/core/include/webview/detail/platform/darwin/webkit/webkit.hh +0 -46
  61. package/vendor/webview/core/include/webview/detail/platform/linux/gtk/compat.hh +0 -137
  62. package/vendor/webview/core/include/webview/detail/platform/linux/webkitgtk/compat.hh +0 -142
  63. package/vendor/webview/core/include/webview/detail/platform/linux/webkitgtk/dmabuf.hh +0 -167
  64. package/vendor/webview/core/include/webview/detail/platform/windows/com_init_wrapper.hh +0 -126
  65. package/vendor/webview/core/include/webview/detail/platform/windows/dpi.hh +0 -161
  66. package/vendor/webview/core/include/webview/detail/platform/windows/dwmapi.hh +0 -67
  67. package/vendor/webview/core/include/webview/detail/platform/windows/iid.hh +0 -78
  68. package/vendor/webview/core/include/webview/detail/platform/windows/ntdll.hh +0 -58
  69. package/vendor/webview/core/include/webview/detail/platform/windows/reg_key.hh +0 -135
  70. package/vendor/webview/core/include/webview/detail/platform/windows/shcore.hh +0 -59
  71. package/vendor/webview/core/include/webview/detail/platform/windows/theme.hh +0 -76
  72. package/vendor/webview/core/include/webview/detail/platform/windows/user32.hh +0 -90
  73. package/vendor/webview/core/include/webview/detail/platform/windows/version.hh +0 -151
  74. package/vendor/webview/core/include/webview/detail/platform/windows/webview2/loader.hh +0 -391
  75. package/vendor/webview/core/include/webview/detail/user_script.hh +0 -76
  76. package/vendor/webview/core/include/webview/detail/utility/string.hh +0 -99
  77. package/vendor/webview/core/include/webview/errors.h +0 -67
  78. package/vendor/webview/core/include/webview/errors.hh +0 -85
  79. package/vendor/webview/core/include/webview/json_deprecated.hh +0 -61
  80. package/vendor/webview/core/include/webview/macros.h +0 -123
  81. package/vendor/webview/core/include/webview/types.h +0 -81
  82. package/vendor/webview/core/include/webview/types.hh +0 -48
  83. package/vendor/webview/core/include/webview/version.h +0 -67
  84. package/vendor/webview/core/include/webview/webview.h +0 -32
  85. package/vendor/webview/core/include/webview.h +0 -15
  86. package/vendor/webview/core/src/webview.cc +0 -1
  87. package/vendor/webview/core/tests/CMakeLists.txt +0 -18
  88. package/vendor/webview/core/tests/src/functional_tests.cc +0 -316
  89. package/vendor/webview/core/tests/src/unit_tests.cc +0 -188
  90. package/vendor/webview2/build/native/include/WebView2.h +0 -23568
  91. package/vendor/webview2/build/native/include/WebView2EnvironmentOptions.h +0 -144
package/native/fetch.ps1 DELETED
@@ -1,66 +0,0 @@
1
- #Requires -Version 7.0
2
- param(
3
- [string]$Root = (Join-Path $PSScriptRoot '..'),
4
- [switch]$Force
5
- )
6
-
7
- Set-StrictMode -Version Latest
8
- $ErrorActionPreference = 'Stop'
9
-
10
- $vendor = Join-Path $Root 'vendor'
11
- $wvDir = Join-Path $vendor 'webview'
12
- $nugetDir = Join-Path $vendor 'webview2'
13
- New-Item -ItemType Directory -Force -Path $vendor | Out-Null
14
-
15
- # 1) webview/webview 源码
16
- if (-not (Test-Path (Join-Path $wvDir '.git'))) {
17
- Write-Host '[1/3] clone webview/webview ...'
18
- & git.exe clone --depth 1 https://github.com/webview/webview.git $wvDir 2>&1 | Out-Host
19
- if ($LASTEXITCODE -ne 0) { throw "git clone failed: $LASTEXITCODE" }
20
- } else {
21
- Write-Host '[1/3] webview 已存在,跳过'
22
- }
23
-
24
- # 2) WebView2 SDK (NuGet 包就是 zip)
25
- $pkg = Join-Path $vendor 'Microsoft.Web.WebView2.1.0.1150.38.nupkg'
26
- if (-not (Test-Path $pkg) -or $Force) {
27
- Write-Host '[2/3] download WebView2 SDK ...'
28
- & aria2c.exe --console-log-level=warn --summary-interval=0 --max-tries=3 `
29
- -d $vendor -o (Split-Path $pkg -Leaf) `
30
- 'https://www.nuget.org/api/v2/package/Microsoft.Web.WebView2/1.0.1150.38'
31
- if ($LASTEXITCODE -ne 0) { throw "aria2c failed: $LASTEXITCODE" }
32
- } else {
33
- Write-Host '[2/3] WebView2 包已存在,跳过'
34
- }
35
-
36
- # 3) 解压
37
- $sdkProbe = Join-Path $nugetDir 'build\native\include\WebView2.h'
38
- if (-not (Test-Path $sdkProbe) -or $Force) {
39
- Write-Host '[3/3] extract ...'
40
- if (Test-Path $nugetDir) { Remove-Item -Recurse -Force $nugetDir }
41
- & 7z.exe x $pkg "-o$nugetDir" -y | Out-Null
42
- if ($LASTEXITCODE -ne 0) { throw "7z failed: $LASTEXITCODE" }
43
- } else {
44
- Write-Host '[3/3] 已解压,跳过'
45
- }
46
-
47
- # 报告
48
- Write-Host ''
49
- Write-Host '=== webview HEAD ==='
50
- & git.exe -C $wvDir log -1 --format='%H %ad %s' --date=short
51
- Write-Host ''
52
- Write-Host '=== compat mingw ==='
53
- Get-ChildItem -Recurse -File (Join-Path $wvDir 'compatibility\mingw\include') |
54
- ForEach-Object { $_.FullName.Substring($wvDir.Length + 1) }
55
- Write-Host ''
56
- Write-Host '=== WebView2 headers ==='
57
- Get-ChildItem -File (Join-Path $nugetDir 'build\native\include') |
58
- ForEach-Object { '{0,-34} {1,10:N0}' -f $_.Name, $_.Length }
59
- Write-Host ''
60
- Write-Host '=== WebView2 loader (x64) ==='
61
- Get-ChildItem -File (Join-Path $nugetDir 'build\native\x64') -ErrorAction SilentlyContinue |
62
- ForEach-Object { '{0,-34} {1,12:N0}' -f $_.Name, $_.Length }
63
- Write-Host ''
64
- Write-Host '=== webview 版本 ==='
65
- Select-String -Path (Join-Path $wvDir 'core\include\webview\version.h') -Pattern 'WEBVIEW_VERSION_(MAJOR|MINOR|PATCH)' |
66
- ForEach-Object { $_.Line.Trim() }