fix: test bundle ovr lib

This commit is contained in:
rs189
2025-07-21 16:26:26 +09:00
committed by Natsumi
parent e2b1948159
commit b25e264171
3 changed files with 14 additions and 3 deletions

View File

@@ -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');