Fix development build on Windows

This commit is contained in:
Samuel Elliott 2019-03-17 22:53:27 +00:00
parent c479a5169c
commit 2c0909d7d7
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 4 additions and 1 deletions

View File

@ -336,7 +336,10 @@ export class BetterDiscord {
this.config.addPath('userfiles', userfiles);
this.config.addPath('snippets', snippets);
if (!this.config.getPath('editor')) this.config.addPath('editor', path.resolve(base, 'editor'));
if (!this.config.getPath('tmp')) this.config.addPath('tmp', path.join(os.tmpdir(), 'betterdiscord', `${process.getuid()}`));
if (!this.config.getPath('tmp')) this.config.addPath('tmp', process.platform !== 'win32' ?
path.join(os.tmpdir(), 'betterdiscord', `${process.getuid()}`) :
path.join(os.tmpdir(), 'betterdiscord'));
}
/**