@covas-labs/electron-vr-prebuilt-win32-x64 0.0.0-bootstrap.0 → 0.3.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.
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @covas-labs/electron-vr-prebuilt-win32-x64
2
2
 
3
- Bootstrap placeholder package for npm trusted publishing setup.
3
+ Internal Electron prebuilt addon package for win32-x64.
package/index.js CHANGED
@@ -1,4 +1,9 @@
1
- module.exports = {
2
- bootstrap: true,
3
- message: "Bootstrap placeholder package. Configure trusted publishing, then publish a real tagged release."
4
- };
1
+ const path = require("node:path");
2
+ const packageDir = __dirname;
3
+ if (process.platform === "win32") {
4
+ process.env.PATH = process.env.PATH ? packageDir + ";" + process.env.PATH : packageDir;
5
+ } else if (process.platform === "linux") {
6
+ const currentLdLibraryPath = process.env.LD_LIBRARY_PATH || "";
7
+ process.env.LD_LIBRARY_PATH = currentLdLibraryPath ? packageDir + ":" + currentLdLibraryPath : packageDir;
8
+ }
9
+ module.exports = require(path.join(packageDir, "vr_bridge.node"));
package/metadata.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "packageName": "@covas-labs/electron-vr-prebuilt-win32-x64",
3
+ "packageVersion": "0.3.2",
4
+ "runtime": "electron",
5
+ "platform": "win32",
6
+ "arch": "x64",
7
+ "backends": [
8
+ "openxr",
9
+ "openvr",
10
+ "mock"
11
+ ],
12
+ "bundledRuntimeLibraries": [
13
+ "openvr_api.dll"
14
+ ]
15
+ }
package/openvr_api.dll ADDED
Binary file
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@covas-labs/electron-vr-prebuilt-win32-x64",
3
- "version": "0.0.0-bootstrap.0",
4
- "description": "Bootstrap placeholder prebuilt package for npm trusted publishing setup.",
3
+ "version": "0.3.2",
4
+ "private": false,
5
+ "description": "Internal Electron prebuilt addon for win32-x64.",
5
6
  "repository": {
6
7
  "type": "git",
7
8
  "url": "git+https://github.com/COVAS-Labs/electron-vr.git"
@@ -15,7 +16,10 @@
15
16
  ],
16
17
  "files": [
17
18
  "index.js",
18
- "README.md"
19
+ "metadata.json",
20
+ "README.md",
21
+ "vr_bridge.node",
22
+ "openvr_api.dll"
19
23
  ],
20
24
  "publishConfig": {
21
25
  "registry": "https://registry.npmjs.org",
package/vr_bridge.node ADDED
Binary file