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:
parent
bf25c7f25b
commit
0105368a3e
2 changed files with 3 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue