mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-01 22:47:19 +03:00
Fixed AppImage compatibility
This commit is contained in:
parent
cd3f2e5346
commit
becb7db124
3 changed files with 6 additions and 3 deletions
|
@ -31,7 +31,9 @@ export default class Configs
|
||||||
}
|
}
|
||||||
|
|
||||||
resolve(config);
|
resolve(config);
|
||||||
}).catch(() => resolve(undefined));
|
}).catch(() => {
|
||||||
|
setTimeout(() => resolve(this.get(name)), 100);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ export default class Launcher
|
||||||
title: 'Settings',
|
title: 'Settings',
|
||||||
width: 900,
|
width: 900,
|
||||||
height: 600,
|
height: 600,
|
||||||
enableInspector: true,
|
// enableInspector: true,
|
||||||
exitProcessOnClose: false
|
exitProcessOnClose: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import constants from '../Constants';
|
||||||
import Debug, { DebugThread } from "../core/Debug";
|
import Debug, { DebugThread } from "../core/Debug";
|
||||||
|
|
||||||
declare const Neutralino;
|
declare const Neutralino;
|
||||||
|
@ -178,7 +179,7 @@ class Process
|
||||||
public static run(command: string, options: ProcessOptions = {}): Promise<Process>
|
public static run(command: string, options: ProcessOptions = {}): Promise<Process>
|
||||||
{
|
{
|
||||||
return new Promise(async (resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
const tmpFile = `${NL_CWD}/${10000 + Math.round(Math.random() * 89999)}.tmp`;
|
const tmpFile = `${await constants.paths.launcherDir}/${10000 + Math.round(Math.random() * 89999)}.tmp`;
|
||||||
|
|
||||||
// Set env variables
|
// Set env variables
|
||||||
if (options.env)
|
if (options.env)
|
||||||
|
|
Loading…
Reference in a new issue