mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Update paths for steam releaase on macos
This commit is contained in:
@@ -50,14 +50,19 @@ export const getLogsFolder = () => {
|
||||
|
||||
export const getExeFolder = () => {
|
||||
return path.dirname(app.getPath('exe'));
|
||||
}
|
||||
};
|
||||
|
||||
export const getWindowStateFile = () =>
|
||||
join(getServerDataFolder(), '.window-state.json');
|
||||
|
||||
const localJavaBin = (sharedDir: string) => {
|
||||
const jre = join(sharedDir, 'jre/bin', javaBin);
|
||||
return jre;
|
||||
const platform = getPlatform();
|
||||
switch (platform) {
|
||||
case 'macos':
|
||||
return join(sharedDir, '../../../../jre/Contents/Home/bin', javaBin);
|
||||
default:
|
||||
return join(sharedDir, 'jre/bin', javaBin);
|
||||
}
|
||||
};
|
||||
|
||||
const javaHomeBin = () => {
|
||||
@@ -116,6 +121,9 @@ export const findServerJar = () => {
|
||||
// For flatpack container
|
||||
path.resolve('/app/share/slimevr/'),
|
||||
path.resolve('/usr/share/slimevr/'),
|
||||
|
||||
// For macos on steam
|
||||
path.resolve(`${app.getPath('exe')}/../../../../`),
|
||||
];
|
||||
return paths
|
||||
.filter((p) => !!p)
|
||||
|
||||
Submodule solarxr-protocol updated: f5ab1bb214...088daeeaa1
Reference in New Issue
Block a user