From e3804e353330601a7cb19d91b29333444514ab24 Mon Sep 17 00:00:00 2001 From: Esteban Abaroa Date: Fri, 2 Feb 2024 15:03:39 +0000 Subject: [PATCH] fix(electron): make sure repo is migrated when starting ipfs --- electron/start-ipfs.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/electron/start-ipfs.js b/electron/start-ipfs.js index 97864f35..3b8a1912 100644 --- a/electron/start-ipfs.js +++ b/electron/start-ipfs.js @@ -54,6 +54,11 @@ const startIpfs = async () => { await spawnAsync(ipfsPath, ['init'], { env, hideWindows: true }); } catch (e) {} + // make sure repo is migrated + try { + await spawnAsync(ipfsPath, ['repo', 'migrate'], { env, hideWindows: true }); + } catch (e) {} + // dont use 8080 port because it's too common await spawnAsync(ipfsPath, ['config', '--json', 'Addresses.Gateway', 'null'], { env,