Skip to content

Commit 6340f0e

Browse files
committed
fix: possible issue caused by capitalization, duplicate installing
1 parent 6106a31 commit 6340f0e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/core/components/ipfsHandler.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ export class IpfsHandler {
119119
console.log('repoPath', {repoPath, goIpfsPath})
120120
await execa(goIpfsPath, ['init'], {
121121
env: {
122-
IPFS_Path: repoPath,
122+
IPFS_PATH: repoPath,
123123
},
124124
})
125125
for (const key in defaultIpfsConfig) {
126126
const subTree = defaultIpfsConfig[key]
127127
await execa(goIpfsPath, ['config', '--json', key, JSON.stringify(subTree)], {
128128
env: {
129-
IPFS_Path: repoPath,
129+
IPFS_PATH: repoPath,
130130
},
131131
})
132132
}
@@ -143,7 +143,7 @@ export class IpfsHandler {
143143
['daemon', '--enable-pubsub-experiment', '--enable-gc', '--migrate'],
144144
{
145145
env: {
146-
IPFS_Path: repoPath,
146+
IPFS_PATH: repoPath,
147147
},
148148
},
149149
)
@@ -168,8 +168,8 @@ export class IpfsHandler {
168168
static async getIpfs() {
169169

170170
let ipfsPath: string
171-
if (process.env.IPFS_Path) {
172-
ipfsPath = process.env.IPFS_Path
171+
if (process.env.IPFS_PATH) {
172+
ipfsPath = process.env.IPFS_PATH
173173
} else {
174174
ipfsPath = Path.join(os.homedir(), '.ipfs-3speak2')
175175
}

src/main/core/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class CoreService {
100100
}
101101
const output = await execa(ipfsPath, ['version', '-n'])
102102
console.log(output)
103-
if(output.stdout !== "0.16.2") {
103+
if(output.stdout !== "0.19.2") {
104104
console.log('Ipfs not up to date')
105105
throw new Error('Ipfs not up to date')
106106
}

0 commit comments

Comments
 (0)