1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 14:07:01 +09:00

data path update

This commit is contained in:
Andrew Simachev 2023-02-14 20:18:30 +03:00
parent 3caff41e72
commit 331b169802

View file

@ -76,7 +76,7 @@ class Util {
};
dataPath () {
const version = app.getVersion();
const { channel } = ConfigManager.config;
const dataPath = [];
if (process.env.DATA_PATH) {
@ -84,12 +84,11 @@ class Util {
dataPath.push(process.env.DATA_PATH);
} else {
dataPath.push(userPath);
if (is.development) {
dataPath.push('dev');
} else
if (version.match('beta')) {
dataPath.push('beta');
if ([ 'alpha', 'beta' ].includes(channel)) {
dataPath.push(channel);
};
dataPath.push('data');
};