Files: 930a234f8e8c982d1f957647399cb38c7eae3dba / background-process.js
961 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-contacts')) |
19 | // .use(require('ssb-ebt')) |
20 | .use(require('ssb-ws')) |
21 | |
22 | // pull config options out of depject |
23 | var config = require('./config').create().config.sync.load() |
24 | |
25 | var sbot = createSbot(config) |
26 | var manifest = sbot.getManifest() |
27 | fs.writeFileSync(Path.join(config.path, 'manifest.json'), JSON.stringify(manifest)) |
28 | electron.ipcRenderer.send('server-started') |
29 |
Built with git-ssb-web