mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
Separate data path for beta accounts
This commit is contained in:
parent
69733359d7
commit
daf1a70e90
1 changed files with 6 additions and 0 deletions
|
@ -75,7 +75,9 @@ class Util {
|
|||
};
|
||||
|
||||
dataPath () {
|
||||
const version = app.getVersion();
|
||||
const dataPath = [];
|
||||
|
||||
if (process.env.DATA_PATH) {
|
||||
this.mkDir(process.env.DATA_PATH);
|
||||
dataPath.push(process.env.DATA_PATH);
|
||||
|
@ -83,9 +85,13 @@ class Util {
|
|||
dataPath.push(userPath);
|
||||
if (is.development) {
|
||||
dataPath.push('dev');
|
||||
} else
|
||||
if (version.match('beta')) {
|
||||
dataPath.push('beta');
|
||||
};
|
||||
dataPath.push('data');
|
||||
};
|
||||
|
||||
return path.join.apply(null, dataPath);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue