mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-29 21:18:17 +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);
|
||||
}).catch(() => resolve(undefined));
|
||||
}).catch(() => {
|
||||
setTimeout(() => resolve(this.get(name)), 100);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ export default class Launcher
|
|||
title: 'Settings',
|
||||
width: 900,
|
||||
height: 600,
|
||||
enableInspector: true,
|
||||
// enableInspector: true,
|
||||
exitProcessOnClose: false
|
||||
});
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import constants from '../Constants';
|
||||
import Debug, { DebugThread } from "../core/Debug";
|
||||
|
||||
declare const Neutralino;
|
||||
|
@ -178,7 +179,7 @@ class Process
|
|||
public static run(command: string, options: ProcessOptions = {}): Promise<Process>
|
||||
{
|
||||
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
|
||||
if (options.env)
|
||||
|
|
Loading…
Reference in a new issue