File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,18 @@ ipcMain.on('start', async ({ sender }) => {
22
22
console . log ( 'starting disposable IPFS' )
23
23
sender . send ( 'message' , 'starting disposable IPFS' )
24
24
try {
25
- const s = createServer ( )
25
+ const s = createServer ( {
26
+ host : '127.0.0.1' ,
27
+ port : 43134
28
+ } , {
29
+ type : 'go' ,
30
+ ipfsBin : require ( 'go-ipfs' ) . path ( ) ,
31
+ ipfsHttpModule : require ( 'ipfs-http-client' )
32
+ } )
26
33
await s . start ( )
27
34
const node = await createController ( {
28
35
type : 'go' ,
29
- ipfsBin : require ( 'go- ipfs' ) . path ( )
36
+ ipfsHttpModule : require ( 'ipfs-http-client' )
30
37
} )
31
38
console . log ( 'get id' )
32
39
sender . send ( 'message' , 'get id' )
@@ -37,7 +44,7 @@ ipcMain.on('start', async ({ sender }) => {
37
44
await node . stop ( )
38
45
await s . stop ( )
39
46
} catch ( error ) {
40
- sender . send ( 'id ' , JSON . stringify ( error . message ) )
47
+ sender . send ( 'error ' , JSON . stringify ( error . message ) )
41
48
console . log ( error )
42
49
}
43
50
} )
Original file line number Diff line number Diff line change 3
3
"private" : true ,
4
4
"main" : " ./app.js" ,
5
5
"dependencies" : {
6
- "go-ipfs" : " ^0.6 .0" ,
7
- "ipfs" : " ^0.43.0 " ,
6
+ "go-ipfs" : " ^0.7 .0" ,
7
+ "ipfs-http-client " : " ^47.0.1 " ,
8
8
"ipfsd-ctl" : " file:../.."
9
9
},
10
10
"devDependencies" : {
11
- "electron" : " ^6.0.12 " ,
12
- "electron-packager" : " ^14.0.6 "
11
+ "electron" : " ^10.1.4 " ,
12
+ "electron-packager" : " ^15.1.0 "
13
13
},
14
14
"scripts" : {
15
15
"start" : " electron ." ,
You can’t perform that action at this time.
0 commit comments