Files: 0b0275502152a806a995b36fd4d29e8c3df1195e / background-process.js
929 bytesRaw
1 | var fs = require('fs') |
2 | var Path = require('path') |
3 | var electron = require('electron') |
4 | |
5 | var createSbot = require('scuttlebot') |
6 | .use(require('scuttlebot/plugins/master')) |
7 | .use(require('scuttlebot/plugins/gossip')) |
8 | .use(require('scuttlebot/plugins/replicate')) |
9 | .use(require('ssb-friends')) |
10 | .use(require('ssb-blobs')) |
11 | .use(require('ssb-backlinks')) |
12 | .use(require('ssb-private')) |
13 | .use(require('scuttlebot/plugins/invite')) |
14 | .use(require('scuttlebot/plugins/local')) |
15 | .use(require('scuttlebot/plugins/logging')) |
16 | .use(require('ssb-query')) |
17 | .use(require('ssb-about')) |
18 | // .use(require('ssb-ebt')) |
19 | .use(require('ssb-ws')) |
20 | |
21 | // pull config options out of depject |
22 | var config = require('./config').create().config.sync.load() |
23 | |
24 | var sbot = createSbot(config) |
25 | var manifest = sbot.getManifest() |
26 | fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest)) |
27 | electron.ipcRenderer.send('server-started') |
28 |
Built with git-ssb-web