mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
change userPath for development purposes
This commit is contained in:
parent
09c7323f46
commit
9e078e1d38
3 changed files with 18 additions and 11 deletions
11
electron.js
11
electron.js
|
@ -7,11 +7,12 @@ const storage = require('electron-json-storage');
|
|||
const port = process.env.SERVER_PORT;
|
||||
const protocol = 'anytype';
|
||||
const remote = require('@electron/remote/main');
|
||||
|
||||
const userPath = app.getPath('userData');
|
||||
const logPath = path.join(userPath, 'logs');
|
||||
const binPath = fixPathForAsarUnpack(path.join(__dirname, 'dist', `anytypeHelper${is.windows ? '.exe' : ''}`));
|
||||
|
||||
if (is.development) {
|
||||
app.setPath('userData', path.join(app.getPath('userData'), '_dev'));
|
||||
};
|
||||
|
||||
const Api = require('./electron/js/api.js');
|
||||
const ConfigManager = require('./electron/js/config.js');
|
||||
const UpdateManager = require('./electron/js/update.js');
|
||||
|
@ -19,8 +20,10 @@ const MenuManager = require('./electron/js/menu.js');
|
|||
const WindowManager = require('./electron/js/window.js');
|
||||
const Server = require('./electron/js/server.js');
|
||||
const Util = require('./electron/js/util.js');
|
||||
|
||||
const Cors = require('./electron/json/cors.json');
|
||||
|
||||
const userPath = Util.userPath();
|
||||
const logPath = Util.logPath();
|
||||
const csp = [];
|
||||
|
||||
for (let i in Cors) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue