mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
fix: test bundle ovr lib
This commit is contained in:
12
package.json
12
package.json
@@ -92,14 +92,16 @@
|
||||
"src-electron/*",
|
||||
"VRCX.png",
|
||||
"images/tray.png",
|
||||
"Version"
|
||||
"Version",
|
||||
"src-electron/libs/linux/libopenvr_api.so"
|
||||
],
|
||||
"asarUnpack": [
|
||||
"node_modules/node-api-dotnet/**/*",
|
||||
"node_modules/node-api-dotnet/net9.0/**/*",
|
||||
"build/Electron/*",
|
||||
"build/Electron/**",
|
||||
"build/Electron/dotnet-runtime/**/*"
|
||||
"build/Electron/dotnet-runtime/**/*",
|
||||
"src-electron/libs/linux/libopenvr_api.so"
|
||||
],
|
||||
"extraResources": [
|
||||
{
|
||||
@@ -121,6 +123,10 @@
|
||||
{
|
||||
"from": "build/Electron/dotnet-runtime/",
|
||||
"to": "dotnet-runtime/"
|
||||
},
|
||||
{
|
||||
"from": "src-electron/libs/linux/libopenvr_api.so",
|
||||
"to": "bin/libopenvr_api.so"
|
||||
}
|
||||
],
|
||||
"directories": {
|
||||
@@ -161,4 +167,4 @@
|
||||
"hazardous": "^0.3.0",
|
||||
"node-api-dotnet": "^0.9.12"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
src-electron/libs/linux/libopenvr_api.so
Normal file
BIN
src-electron/libs/linux/libopenvr_api.so
Normal file
Binary file not shown.
@@ -26,6 +26,11 @@ if (process.platform === 'linux') {
|
||||
process.env.DOTNET_ROOT = bundledDotNetPath;
|
||||
process.env.PATH = `${bundledDotNetPath}:${process.env.PATH}`;
|
||||
}
|
||||
|
||||
const openvrLibPath = path.join(process.resourcesPath, '..', 'bin');
|
||||
if (fs.existsSync(openvrLibPath)) {
|
||||
process.env.LD_LIBRARY_PATH = `${openvrLibPath}:${process.env.LD_LIBRARY_PATH || ''}`;
|
||||
}
|
||||
} else if (process.platform === 'darwin') {
|
||||
const dotnetPath = path.join('/usr/local/share/dotnet');
|
||||
const dotnetPathArm = path.join('/usr/local/share/dotnet/x64');
|
||||
|
||||
Reference in New Issue
Block a user