1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

change tmpPath

This commit is contained in:
Andrew Simachev 2022-08-04 11:12:01 +03:00
parent bf25c7f25b
commit 0105368a3e
2 changed files with 3 additions and 5 deletions

View file

@ -48,9 +48,6 @@ let csp = [
"frame-src chrome-extension://react-developer-tools"
];
remote.initialize();
Util.setAppPath(path.join(__dirname));
if (is.development && !port) {
console.error('ERROR: Please define SERVER_PORT env var');
Api.exit(mainWindow, false);
@ -60,8 +57,9 @@ if (app.isPackaged && !app.requestSingleInstanceLock()) {
Api.exit(mainWindow, false);
};
remote.initialize();
storage.setDataPath(userPath);
Util.mkDir(tmpPath);
Util.setAppPath(path.join(__dirname));
Util.mkDir(logPath);
if (process.env.ANYTYPE_USE_SIDE_SERVER) {