1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00
This commit is contained in:
Andrew Simachev 2024-01-14 12:54:56 +01:00
parent 31cfe3fb73
commit bb8319a397
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
4 changed files with 10 additions and 15 deletions

View file

@ -14,6 +14,8 @@ if (is.windows) {
app.setAppUserModelId(app.name);
};
storage.setDataPath(app.getPath('userData'));
const Api = require('./electron/js/api.js');
const ConfigManager = require('./electron/js/config.js');
const UpdateManager = require('./electron/js/update.js');
@ -70,16 +72,11 @@ Util.setAppPath(path.join(__dirname));
function waitForLibraryAndCreateWindows () {
let userDataPath = ConfigManager.config.userDataPath || app.getPath('userData');
console.log('userDataPath1', userDataPath);
if (is.development) {
userDataPath = path.join(userDataPath, '_dev');
};
console.log('userDataPath2', userDataPath);
app.setPath('userData', userDataPath);
storage.setDataPath(userDataPath);
if (process.env.ANYTYPE_USE_SIDE_SERVER) {
// use the grpc server started from the outside