nwutils/nw-builder

`argv` is not properly handled

zkrige opened this issue · 0 comments

zkrige commented

Issue Type

  • Bug Report
  • Feature Request
  • Other

Current/Missing Behaviour

const nwProcess = spawn(
        resolve(nwDir, EXE_NAME[platform]),
        [srcDir.concat(argv)],
        {
          detached: true,
          windowsHide: true,
        },
      );

Expected/Proposed Behaviour

const nwProcess = spawn(
        resolve(nwDir, EXE_NAME[platform]),
        [...[srcDir], ...argv],
        {
          detached: true,
          windowsHide: true,
        },
      );

Additional Info

the existing code just concats argv params onto the srcdir which results in one long string parameter