@covas-labs/electron-vr-prebuilt-linux-x64 0.4.3 → 0.5.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/electron_vr_openxr_layer_linux.json +11 -0
- package/libelectron_vr_openxr_layer.so +0 -0
- package/metadata.json +7 -2
- package/openxr-layer-cli.js +15 -0
- package/package.json +8 -2
- package/vr_bridge.node +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"file_format_version": "1.0.0",
|
|
3
|
+
"api_layer": {
|
|
4
|
+
"name": "XR_APILAYER_ELECTRON_VR_overlay",
|
|
5
|
+
"library_path": "./libelectron_vr_openxr_layer.so",
|
|
6
|
+
"api_version": "1.0",
|
|
7
|
+
"implementation_version": "1",
|
|
8
|
+
"description": "Injects an Electron DMA-BUF quad into compatible Linux OpenXR sessions",
|
|
9
|
+
"disable_environment": "ELECTRON_VR_DISABLE_OPENXR_API_LAYER"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
Binary file
|
package/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packageName": "@covas-labs/electron-vr-prebuilt-linux-x64",
|
|
3
|
-
"packageVersion": "0.
|
|
3
|
+
"packageVersion": "0.5.0",
|
|
4
4
|
"runtime": "electron",
|
|
5
5
|
"platform": "linux",
|
|
6
6
|
"arch": "x64",
|
|
@@ -13,5 +13,10 @@
|
|
|
13
13
|
"libopenvr_api.so",
|
|
14
14
|
"libopenxr_loader.so.1",
|
|
15
15
|
"libjsoncpp.so.25"
|
|
16
|
-
]
|
|
16
|
+
],
|
|
17
|
+
"openxrApiLayer": {
|
|
18
|
+
"manifest": "electron_vr_openxr_layer_linux.json",
|
|
19
|
+
"library": "libelectron_vr_openxr_layer.so",
|
|
20
|
+
"protocolVersion": 1
|
|
21
|
+
}
|
|
17
22
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const fs = require("node:fs");
|
|
3
|
+
const path = require("node:path");
|
|
4
|
+
const command = process.argv[2];
|
|
5
|
+
const root = process.env.XDG_DATA_HOME || path.join(process.env.HOME || "", ".local", "share");
|
|
6
|
+
const directory = path.join(root, "openxr", "1", "api_layers", "implicit.d");
|
|
7
|
+
const manifest = path.join(directory, "electron_vr_openxr_layer.json");
|
|
8
|
+
const disabled = manifest + ".disabled";
|
|
9
|
+
const library = path.join(directory, "libelectron_vr_openxr_layer.so");
|
|
10
|
+
if (command === "install") { fs.mkdirSync(directory, { recursive: true, mode: 0o700 }); fs.copyFileSync(path.join(__dirname, "libelectron_vr_openxr_layer.so"), library); fs.copyFileSync(path.join(__dirname, "electron_vr_openxr_layer_linux.json"), manifest); fs.rmSync(disabled, { force: true }); }
|
|
11
|
+
else if (command === "enable") { if (fs.existsSync(disabled)) fs.renameSync(disabled, manifest); }
|
|
12
|
+
else if (command === "disable") { if (fs.existsSync(manifest)) fs.renameSync(manifest, disabled); }
|
|
13
|
+
else if (command === "uninstall") { fs.rmSync(manifest, { force: true }); fs.rmSync(disabled, { force: true }); fs.rmSync(library, { force: true }); }
|
|
14
|
+
else if (command !== "status") throw new Error("Expected install, enable, disable, status, or uninstall");
|
|
15
|
+
console.log("installed=" + (fs.existsSync(library) && (fs.existsSync(manifest) || fs.existsSync(disabled)))); console.log("enabled=" + (fs.existsSync(library) && fs.existsSync(manifest))); console.log("manifest=" + manifest); console.log("scope=current-user");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@covas-labs/electron-vr-prebuilt-linux-x64",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Internal Electron prebuilt addon for linux-x64.",
|
|
6
6
|
"repository": {
|
|
@@ -21,8 +21,14 @@
|
|
|
21
21
|
"vr_bridge.node",
|
|
22
22
|
"libopenvr_api.so",
|
|
23
23
|
"libopenxr_loader.so.1",
|
|
24
|
-
"libjsoncpp.so.25"
|
|
24
|
+
"libjsoncpp.so.25",
|
|
25
|
+
"libelectron_vr_openxr_layer.so",
|
|
26
|
+
"electron_vr_openxr_layer_linux.json",
|
|
27
|
+
"openxr-layer-cli.js"
|
|
25
28
|
],
|
|
29
|
+
"bin": {
|
|
30
|
+
"electron-vr-openxr-layer": "openxr-layer-cli.js"
|
|
31
|
+
},
|
|
26
32
|
"publishConfig": {
|
|
27
33
|
"registry": "https://registry.npmjs.org",
|
|
28
34
|
"access": "public"
|
package/vr_bridge.node
CHANGED
|
Binary file
|