@gjsify/node-runtime-win32-arm64 0.0.0-stage → 0.64.6
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 +25 -2
- package/index.d.ts +22 -0
- package/index.js +47 -0
- package/package.json +42 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
fetch script in the gjsify repository that populates it. It does NOT cover the
|
|
7
|
+
Node.js interpreter under `bin/`: that keeps the terms of the Node.js project
|
|
8
|
+
and its bundled dependencies, reproduced verbatim in `bin/LICENSE` inside the
|
|
9
|
+
published tarball.
|
|
10
|
+
|
|
11
|
+
Node.js is a registered trademark of the OpenJS Foundation. This package is not
|
|
12
|
+
affiliated with, endorsed, or sponsored by the OpenJS Foundation.
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @gjsify/node-runtime-win32-arm64
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The **Node.js interpreter for Windows arm64**, packaged so an application built with
|
|
4
|
+
gjsify can carry its own. Three files, nothing else:
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
bin/node.exe the interpreter, verbatim from the pinned Node 24 LTS release (win-arm64)
|
|
8
|
+
bin/LICENSE Node's own LICENSE, verbatim from that same release
|
|
9
|
+
bin/manifest.json which release, which URL, which digests
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Platform-gated (`os: ["win32"]`, `cpu: ["arm64"]`), tier 3. The `bin/` payload
|
|
13
|
+
is **not committed** — it is fetched and digest-checked on a CI runner by
|
|
14
|
+
[`../scripts/fetch-node-runtime.mjs`](../scripts/fetch-node-runtime.mjs)
|
|
15
|
+
(`--target win32-arm64`, Node's own `win-arm64` dist tag) and reaches
|
|
16
|
+
consumers through the published tarball.
|
|
17
|
+
|
|
18
|
+
Same rules as the [win32-x64 sibling](../node-runtime-win32-x64) — nobody adds
|
|
19
|
+
this to `dependencies`; `gjsify ship` resolves it by name for a Windows/ARM
|
|
20
|
+
target and stages `bin/node.exe` into the artifact. Overriding it is
|
|
21
|
+
`GJSIFY_NODE_RUNTIME=/path/to/bin`.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
Node.js is a registered trademark of the OpenJS Foundation. This package is not
|
|
26
|
+
affiliated with, endorsed, or sponsored by the OpenJS Foundation.
|
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-arm64';
|
|
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-arm64';
|
|
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-arm64 — 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-arm64';
|
|
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
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/node-runtime-win32-arm64",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.64.6",
|
|
4
|
+
"description": "Bundled Node.js interpreter for Windows arm64 — 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/arm64 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
|
+
"arm64"
|
|
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-arm64 --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-arm64"
|
|
43
|
+
}
|
|
44
|
+
}
|