diff --git a/src/main/core/components/ipfsHandler.ts b/src/main/core/components/ipfsHandler.ts index ab71b16..e897a42 100644 --- a/src/main/core/components/ipfsHandler.ts +++ b/src/main/core/components/ipfsHandler.ts @@ -119,14 +119,14 @@ export class IpfsHandler { console.log('repoPath', {repoPath, goIpfsPath}) await execa(goIpfsPath, ['init'], { env: { - IPFS_Path: repoPath, + IPFS_PATH: repoPath, }, }) for (const key in defaultIpfsConfig) { const subTree = defaultIpfsConfig[key] await execa(goIpfsPath, ['config', '--json', key, JSON.stringify(subTree)], { env: { - IPFS_Path: repoPath, + IPFS_PATH: repoPath, }, }) } @@ -143,7 +143,7 @@ export class IpfsHandler { ['daemon', '--enable-pubsub-experiment', '--enable-gc', '--migrate'], { env: { - IPFS_Path: repoPath, + IPFS_PATH: repoPath, }, }, ) @@ -168,8 +168,8 @@ export class IpfsHandler { static async getIpfs() { let ipfsPath: string - if (process.env.IPFS_Path) { - ipfsPath = process.env.IPFS_Path + if (process.env.IPFS_PATH) { + ipfsPath = process.env.IPFS_PATH } else { ipfsPath = Path.join(os.homedir(), '.ipfs-3speak2') } diff --git a/src/main/core/index.ts b/src/main/core/index.ts index 6a6d235..c0a469d 100644 --- a/src/main/core/index.ts +++ b/src/main/core/index.ts @@ -100,7 +100,7 @@ export class CoreService { } const output = await execa(ipfsPath, ['version', '-n']) console.log(output) - if(output.stdout !== "0.16.2") { + if(output.stdout !== "0.19.2") { console.log('Ipfs not up to date') throw new Error('Ipfs not up to date') }