Fixing linux data directory.
This commit is contained in:
parent
49bad485f6
commit
54e3861ba8
@ -4,7 +4,7 @@ const os = require('os')
|
||||
const path = require('path')
|
||||
const uuidV4 = require('uuid/v4')
|
||||
|
||||
const sysRoot = process.env.APPDATA || (process.platform == 'darwin' ? process.env.HOME + '/Library/Application Support' : '/var/local')
|
||||
const sysRoot = process.env.APPDATA || (process.platform == 'darwin' ? process.env.HOME + '/Library/Application Support' : process.env.HOME)
|
||||
const dataPath = path.join(sysRoot, '.westeroscraft')
|
||||
|
||||
const firstLaunch = !fs.existsSync(dataPath)
|
||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -743,12 +743,12 @@
|
||||
"resolved": "https://registry.npmjs.org/discord-rpc/-/discord-rpc-3.0.0-beta.10.tgz",
|
||||
"integrity": "sha512-b0G6O0WJkxoLQSopyNRqByXCrpBL68HXPMULVZXLjRgj+sStwOmbABM+HwBDJWF6s/uhkB/+cAgq+19x4w0SPA==",
|
||||
"requires": {
|
||||
"discord.js": "github:discordjs/discord.js#a5e8f05d01e34b69b80736688704ee594b4d0900",
|
||||
"discord.js": "github:discordjs/discord.js#a732402c95438f5ddda20958e5c1b2360500069a",
|
||||
"snekfetch": "^3.5.8"
|
||||
},
|
||||
"dependencies": {
|
||||
"discord.js": {
|
||||
"version": "github:discordjs/discord.js#a5e8f05d01e34b69b80736688704ee594b4d0900",
|
||||
"version": "github:discordjs/discord.js#a732402c95438f5ddda20958e5c1b2360500069a",
|
||||
"from": "github:discordjs/discord.js",
|
||||
"requires": {
|
||||
"pako": "^1.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user