@gjsify/gl-runtime-win32-x64 0.52.0 → 0.54.0

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/LICENSE CHANGED
@@ -1,27 +1,27 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 gjsify contributors
4
-
5
- This license covers the SOURCE of this package (index.js, index.d.ts) and the
6
- build script in the gjsify repository that assembles the payload. It does NOT
7
- cover the third-party Mesa / LLVM binaries under `bin/`: those keep the terms
8
- of their own projects, reproduced in `bin/THIRD-PARTY-NOTICES.md` and
9
- `bin/licenses/` inside the published tarball.
10
-
11
- Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions:
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 gjsify contributors
4
+
5
+ This license covers the SOURCE of this package (index.js, index.d.ts) and the
6
+ build script in the gjsify repository that assembles the payload. It does NOT
7
+ cover the third-party Mesa / LLVM binaries under `bin/`: those keep the terms
8
+ of their own projects, reproduced in `bin/THIRD-PARTY-NOTICES.md` and
9
+ `bin/licenses/` inside the published tarball.
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
package/README.md CHANGED
@@ -1,47 +1,47 @@
1
- # @gjsify/gl-runtime-win32-x64
2
-
3
- Optional OpenGL for GTK apps on Windows hosts that have **no OpenGL driver of their own**:
4
- VMs, RDP sessions, Windows Server, CI runners. It contains Mesa's WGL build
5
- (`opengl32.dll` + `libgallium_wgl.dll`) from the pinned
6
- [mesa-dist-win](https://github.com/pal1000/mesa-dist-win) release, plus the licence texts
7
- that must travel with them (`bin/THIRD-PARTY-NOTICES.md`).
8
-
9
- > **Not yet published on npm.** The first publish of this name is queued in
10
- > `status/pending-npm-bootstrap.json`; until then the dependency below 404s.
11
-
12
- ```json
13
- "dependencies": {
14
- "@gjsify/gl-runtime-win32-x64": "^0.52.0"
15
- }
16
- ```
17
-
18
- ## Why it is separate
19
-
20
- It is ~22 MB in the tarball (59 MiB unpacked, almost all of it LLVM for Mesa's llvmpipe),
21
- and most Windows machines never use it: a host with a vendor GPU driver keeps that driver.
22
- So it is an opt-in, never part of `@gjsify/gtk-runtime-win32-x64` and never a dependency of
23
- `@gjsify/node-gi` — node-gi finds it **by name** when an app has installed it.
24
-
25
- ## What happens at run time
26
-
27
- `@gjsify/node-gi` asks whether the host has an OpenGL driver (the display driver's
28
- user-mode ICD, or one registered under `HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers`).
29
- Only when it has none, it loads this package's `opengl32.dll` **by absolute path** before GTK
30
- loads. That is the only way it can take effect: `gtk-4-1.dll` imports `OPENGL32` statically,
31
- and Windows never looks for it on `PATH`. Mesa then uses its d3d12 driver where a D3D12 device
32
- exists (WARP included) and llvmpipe otherwise. Measured on a GitHub `windows-latest` runner:
33
- GDK gets an OpenGL **4.6 core** context (`D3D12 (Microsoft Basic Render Driver)`), where
34
- without this package it gets `No GL implementation is available`.
35
-
36
- `GJSIFY_OPENGL=bundle` forces Mesa even over a vendor driver, `GJSIFY_OPENGL=system` never
37
- uses it. `openGLActivation()` from `@gjsify/node-gi/gtk-runtime` reports the decision and why.
38
-
39
- GSK itself still renders with cairo by default on Windows: GTK's win32 GL renderer requires
40
- DirectComposition, which GTK makes opt-in (`GDK_DEBUG=dcomp`). `Gtk.GLArea` works either way.
41
-
42
- ## Building the payload
43
-
44
- `node scripts/build-gl-runtime.mjs` downloads the pinned release, checks its sha256, extracts
45
- the two DLLs into `bin/` and writes the notice. The pin lives in
46
- `packages/node-gi/scripts/fetch-gl-implementation.mjs`; `licenses/provenance.json` must name
47
- the same release (held by `node-gi/test/gl-runtime-package.test.mjs`).
1
+ # @gjsify/gl-runtime-win32-x64
2
+
3
+ Optional OpenGL for GTK apps on Windows hosts that have **no OpenGL driver of their own**:
4
+ VMs, RDP sessions, Windows Server, CI runners. It contains Mesa's WGL build
5
+ (`opengl32.dll` + `libgallium_wgl.dll`) from the pinned
6
+ [mesa-dist-win](https://github.com/pal1000/mesa-dist-win) release, plus the licence texts
7
+ that must travel with them (`bin/THIRD-PARTY-NOTICES.md`).
8
+
9
+ > **Not yet published on npm.** The first publish of this name is queued in
10
+ > `status/pending-npm-bootstrap.json`; until then the dependency below 404s.
11
+
12
+ ```json
13
+ "dependencies": {
14
+ "@gjsify/gl-runtime-win32-x64": "^0.52.0"
15
+ }
16
+ ```
17
+
18
+ ## Why it is separate
19
+
20
+ It is ~22 MB in the tarball (59 MiB unpacked, almost all of it LLVM for Mesa's llvmpipe),
21
+ and most Windows machines never use it: a host with a vendor GPU driver keeps that driver.
22
+ So it is an opt-in, never part of `@gjsify/gtk-runtime-win32-x64` and never a dependency of
23
+ `@gjsify/node-gi` — node-gi finds it **by name** when an app has installed it.
24
+
25
+ ## What happens at run time
26
+
27
+ `@gjsify/node-gi` asks whether the host has an OpenGL driver (the display driver's
28
+ user-mode ICD, or one registered under `HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers`).
29
+ Only when it has none, it loads this package's `opengl32.dll` **by absolute path** before GTK
30
+ loads. That is the only way it can take effect: `gtk-4-1.dll` imports `OPENGL32` statically,
31
+ and Windows never looks for it on `PATH`. Mesa then uses its d3d12 driver where a D3D12 device
32
+ exists (WARP included) and llvmpipe otherwise. Measured on a GitHub `windows-latest` runner:
33
+ GDK gets an OpenGL **4.6 core** context (`D3D12 (Microsoft Basic Render Driver)`), where
34
+ without this package it gets `No GL implementation is available`.
35
+
36
+ `GJSIFY_OPENGL=bundle` forces Mesa even over a vendor driver, `GJSIFY_OPENGL=system` never
37
+ uses it. `openGLActivation()` from `@gjsify/node-gi/gtk-runtime` reports the decision and why.
38
+
39
+ GSK itself still renders with cairo by default on Windows: GTK's win32 GL renderer requires
40
+ DirectComposition, which GTK makes opt-in (`GDK_DEBUG=dcomp`). `Gtk.GLArea` works either way.
41
+
42
+ ## Building the payload
43
+
44
+ `node scripts/build-gl-runtime.mjs` downloads the pinned release, checks its sha256, extracts
45
+ the two DLLs into `bin/` and writes the notice. The pin lives in
46
+ `packages/node-gi/scripts/fetch-gl-implementation.mjs`; `licenses/provenance.json` must name
47
+ the same release (held by `node-gi/test/gl-runtime-package.test.mjs`).