Do not infer path

circom-desktop
ioedeveloper 1 month ago
parent 5c5cb27156
commit b717a91266
  1. 6
      apps/remixdesktop/src/plugins/circomElectronBasePlugin.ts

@ -49,12 +49,12 @@ class CircomElectronPluginClient extends ElectronBasePluginClient {
// @ts-ignore
const wd = await this.call('fs', 'getWorkingDir')
// @ts-ignore
const outputDirExists = await this.call('fs', 'exists', path.normalize(extractParentFromKey(filePath) + '/.bin'))
const outputDirExists = await this.call('fs', 'exists', path.normalize(path.join(extractParentFromKey(filePath), '.bin')))
// @ts-ignore
if (!outputDirExists) await this.call('fs', 'mkdir', path.normalize(extractParentFromKey(filePath) + '/.bin'))
if (!outputDirExists) await this.call('fs', 'mkdir', path.normalize(path.join(extractParentFromKey(filePath), '.bin')))
filePath = path.join(wd, filePath)
const depPath = path.normalize(path.join(wd, '.deps/https/raw.githubusercontent.com/iden3/'))
const outputDir = path.normalize(extractParentFromKey(filePath) + '/.bin')
const outputDir = path.normalize(path.join(extractParentFromKey(filePath), '.bin'))
this.call('terminal' as any, 'logHtml', `Compiling ${filePath} with circom compiler (${version})`)
return await circomCli.run(`${filePath} -l ${depPath} -o ${outputDir}`, version, options)

Loading…
Cancel
Save