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:
parent
3caff41e72
commit
331b169802
1 changed files with 5 additions and 6 deletions
|
@ -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');
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue