mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
fix: test bundle ovr lib
This commit is contained in:
+8
-2
@@ -92,14 +92,16 @@
|
|||||||
"src-electron/*",
|
"src-electron/*",
|
||||||
"VRCX.png",
|
"VRCX.png",
|
||||||
"images/tray.png",
|
"images/tray.png",
|
||||||
"Version"
|
"Version",
|
||||||
|
"src-electron/libs/linux/libopenvr_api.so"
|
||||||
],
|
],
|
||||||
"asarUnpack": [
|
"asarUnpack": [
|
||||||
"node_modules/node-api-dotnet/**/*",
|
"node_modules/node-api-dotnet/**/*",
|
||||||
"node_modules/node-api-dotnet/net9.0/**/*",
|
"node_modules/node-api-dotnet/net9.0/**/*",
|
||||||
"build/Electron/*",
|
"build/Electron/*",
|
||||||
"build/Electron/**",
|
"build/Electron/**",
|
||||||
"build/Electron/dotnet-runtime/**/*"
|
"build/Electron/dotnet-runtime/**/*",
|
||||||
|
"src-electron/libs/linux/libopenvr_api.so"
|
||||||
],
|
],
|
||||||
"extraResources": [
|
"extraResources": [
|
||||||
{
|
{
|
||||||
@@ -121,6 +123,10 @@
|
|||||||
{
|
{
|
||||||
"from": "build/Electron/dotnet-runtime/",
|
"from": "build/Electron/dotnet-runtime/",
|
||||||
"to": "dotnet-runtime/"
|
"to": "dotnet-runtime/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": "src-electron/libs/linux/libopenvr_api.so",
|
||||||
|
"to": "bin/libopenvr_api.so"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|||||||
Binary file not shown.
@@ -26,6 +26,11 @@ if (process.platform === 'linux') {
|
|||||||
process.env.DOTNET_ROOT = bundledDotNetPath;
|
process.env.DOTNET_ROOT = bundledDotNetPath;
|
||||||
process.env.PATH = `${bundledDotNetPath}:${process.env.PATH}`;
|
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') {
|
} else if (process.platform === 'darwin') {
|
||||||
const dotnetPath = path.join('/usr/local/share/dotnet');
|
const dotnetPath = path.join('/usr/local/share/dotnet');
|
||||||
const dotnetPathArm = path.join('/usr/local/share/dotnet/x64');
|
const dotnetPathArm = path.join('/usr/local/share/dotnet/x64');
|
||||||
|
|||||||
Reference in New Issue
Block a user