@gjsify/node-runtime-win32-x64 0.44.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 +30 -0
- package/README.md +126 -0
- package/bin/LICENSE +2946 -0
- package/bin/manifest.json +20 -0
- package/bin/node.exe +0 -0
- package/index.d.ts +22 -0
- package/index.js +47 -0
- package/package.json +44 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"package": "@gjsify/node-runtime-win32-x64",
|
|
3
|
+
"target": "win32-x64",
|
|
4
|
+
"os": "win32",
|
|
5
|
+
"cpu": "x64",
|
|
6
|
+
"nodeVersion": "v24.20.0",
|
|
7
|
+
"source": "https://nodejs.org/dist/v24.20.0/node-v24.20.0-win-x64.zip",
|
|
8
|
+
"archiveSha256": "6cac9ffbca8f6a47091e4b5c772e0606049c3871cb67d900c0cedde630e545ba",
|
|
9
|
+
"binary": {
|
|
10
|
+
"name": "node.exe",
|
|
11
|
+
"bytes": 93381448,
|
|
12
|
+
"sha256": "5c976096e04e5c2c1f091938926234cc9fbebfe9787ddd149351b3b0ecc707b5"
|
|
13
|
+
},
|
|
14
|
+
"license": {
|
|
15
|
+
"name": "LICENSE",
|
|
16
|
+
"bytes": 160555,
|
|
17
|
+
"sha256": "ed34dd8e3f0a78dbaf00d0444ce8e285b015b765379c2e17880455f70370f8e9"
|
|
18
|
+
},
|
|
19
|
+
"builder": "packages/node-runtime/scripts/fetch-node-runtime.mjs"
|
|
20
|
+
}
|
package/bin/node.exe
ADDED
|
Binary file
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
/** The platform-arch this package carries an interpreter for. */
|
|
3
|
+
export const target: 'win32-x64';
|
|
4
|
+
/** The interpreter's filename — a package constant, not derived from `process.platform`. */
|
|
5
|
+
export const binaryName: 'node.exe';
|
|
6
|
+
/** Absolute path to the payload directory (contains the interpreter + LICENSE). */
|
|
7
|
+
export const binDir: string;
|
|
8
|
+
/** Absolute path to the bundled Node interpreter. */
|
|
9
|
+
export const nodePath: string;
|
|
10
|
+
/** Absolute path to Node's own LICENSE, copied verbatim from the release. */
|
|
11
|
+
export const licensePath: string;
|
|
12
|
+
/** Whether the payload is actually present (it is fetched on CI, not committed). */
|
|
13
|
+
export const isPresent: boolean;
|
|
14
|
+
declare const _default: {
|
|
15
|
+
target: 'win32-x64';
|
|
16
|
+
binaryName: 'node.exe';
|
|
17
|
+
binDir: string;
|
|
18
|
+
nodePath: string;
|
|
19
|
+
licensePath: string;
|
|
20
|
+
isPresent: boolean;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
package/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// @gjsify/node-runtime-win32-x64 — where the bundled Node interpreter is.
|
|
3
|
+
//
|
|
4
|
+
// A path helper and nothing else. Whoever SHIPS an application resolves this
|
|
5
|
+
// package by name and copies `nodePath` into the artifact (`gjsify ship`'s macOS
|
|
6
|
+
// .app bundle / Windows program directory); this file never spawns anything and
|
|
7
|
+
// never reads a global.
|
|
8
|
+
import { existsSync } from 'node:fs';
|
|
9
|
+
import { dirname, join } from 'node:path';
|
|
10
|
+
import { fileURLToPath } from 'node:url';
|
|
11
|
+
|
|
12
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
13
|
+
|
|
14
|
+
/** The platform-arch this package carries an interpreter for. */
|
|
15
|
+
export const target = 'win32-x64';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The interpreter's filename — a per-package CONSTANT, never derived from
|
|
19
|
+
* `process.platform`.
|
|
20
|
+
*
|
|
21
|
+
* Deriving it would be wrong exactly where it matters: assembling a Windows
|
|
22
|
+
* artifact from a Linux or macOS host is a supported path (ADR 0024 § A1 — the
|
|
23
|
+
* packers are pure JavaScript and run anywhere), and a `process.platform`-derived
|
|
24
|
+
* name would look for `node` inside the win32 package and find nothing, with the
|
|
25
|
+
* failure reading as a missing payload.
|
|
26
|
+
*/
|
|
27
|
+
export const binaryName = 'node.exe';
|
|
28
|
+
|
|
29
|
+
/** Absolute path to the payload directory (contains the interpreter + LICENSE). */
|
|
30
|
+
export const binDir = join(here, 'bin');
|
|
31
|
+
|
|
32
|
+
/** Absolute path to the bundled Node interpreter. */
|
|
33
|
+
export const nodePath = join(binDir, binaryName);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Absolute path to Node's own LICENSE, copied verbatim from the release.
|
|
37
|
+
*
|
|
38
|
+
* It must travel with the binary. One file discharges the whole set — MIT,
|
|
39
|
+
* Apache-2.0, BSD-3, Unicode-3.0, zlib, Artistic-2.0, BlueOak-1.0.0, ISC — and
|
|
40
|
+
* shipping the interpreter without it is redistribution with no terms attached.
|
|
41
|
+
*/
|
|
42
|
+
export const licensePath = join(binDir, 'LICENSE');
|
|
43
|
+
|
|
44
|
+
/** Whether the payload is actually present (it is fetched on CI, not committed). */
|
|
45
|
+
export const isPresent = existsSync(nodePath) && existsSync(licensePath);
|
|
46
|
+
|
|
47
|
+
export default { target, binaryName, binDir, nodePath, licensePath, isPresent };
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gjsify/node-runtime-win32-x64",
|
|
3
|
+
"version": "0.44.0",
|
|
4
|
+
"description": "Bundled Node.js interpreter for Windows x64 — just the `node.exe` binary from a pinned Node 24 LTS release plus its LICENSE, for apps that `gjsify ship` packages where no system Node can be assumed. Platform-gated (win32/x64 only). Node.js is a registered trademark of the OpenJS Foundation; this package is not affiliated with, endorsed, or sponsored by the OpenJS Foundation.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "SEE LICENSE IN bin/LICENSE",
|
|
7
|
+
"os": [
|
|
8
|
+
"win32"
|
|
9
|
+
],
|
|
10
|
+
"cpu": [
|
|
11
|
+
"x64"
|
|
12
|
+
],
|
|
13
|
+
"main": "./index.js",
|
|
14
|
+
"types": "./index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./index.d.ts",
|
|
18
|
+
"default": "./index.js"
|
|
19
|
+
},
|
|
20
|
+
"./bin/*": "./bin/*"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"index.js",
|
|
24
|
+
"index.d.ts",
|
|
25
|
+
"bin"
|
|
26
|
+
],
|
|
27
|
+
"gjsify": {
|
|
28
|
+
"runtimes": {
|
|
29
|
+
"gjs": "none",
|
|
30
|
+
"node": "polyfill",
|
|
31
|
+
"browser": "none",
|
|
32
|
+
"nativescript": "none"
|
|
33
|
+
},
|
|
34
|
+
"tier": 3
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build:bundle": "node ../scripts/fetch-node-runtime.mjs --target win32-x64 --out bin"
|
|
38
|
+
},
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "git+https://github.com/gjsify/gjsify.git",
|
|
42
|
+
"directory": "packages/node-runtime/node-runtime-win32-x64"
|
|
43
|
+
}
|
|
44
|
+
}
|