@@ -249,14 +249,15 @@ class DaisyExporter final : public ExporterBase {
249249 auto size = getValue<int >(patchSizeValue);
250250 auto appType = getValue<int >(appTypeValue);
251251
252- StringArray args = { heavyExecutable.getFullPathName (), pdPatch, " -o" + outdir };
252+
253+ StringArray args = { heavyExecutable.getFullPathName (), pdPatch, " -o" , outdir};
253254
254255 name = name.replaceCharacter (' -' , ' _' );
255256 args.add (" -n" + name);
256257
257258 if (copyright.isNotEmpty ()) {
258259 args.add (" --copyright" );
259- args.add (" \" " + copyright + " \" " );
260+ args.add (copyright. quoted () );
260261 }
261262
262263 // set board definition
@@ -331,7 +332,7 @@ class DaisyExporter final : public ExporterBase {
331332
332333 metaJson->setProperty (" daisy" , metaDaisy);
333334 auto metaJsonFile = createMetaJson (metaJson);
334- args.add (" -m" + metaJsonFile.getFullPathName ());
335+ args.add (" -m" + metaJsonFile.getFullPathName (). quoted () );
335336
336337 args.add (" -v" );
337338 args.add (" -gdaisy" );
@@ -343,9 +344,8 @@ class DaisyExporter final : public ExporterBase {
343344
344345 args.add (paths);
345346
346- auto compileString = args.joinIntoString (" " );
347- exportingView->logToConsole (" Command: " + compileString + " \n " );
348- start (compileString);
347+ exportingView->logToConsole (" Command: " + args.joinIntoString (" " ) + " \n " );
348+ start (args);
349349 waitForProcessToFinish (-1 );
350350 exportingView->flushConsole ();
351351
@@ -385,15 +385,15 @@ class DaisyExporter final : public ExporterBase {
385385#if JUCE_WINDOWS
386386 auto buildScript = make.getFullPathName ().replaceCharacter (' \\ ' , ' /' )
387387 + " -j4 -f "
388- + sourceDir.getChildFile (" Makefile" ).getFullPathName ().replaceCharacter (' \\ ' , ' /' )
388+ + sourceDir.getChildFile (" Makefile" ).getFullPathName ().replaceCharacter (' \\ ' , ' /' ). quoted ()
389389 + " GCC_PATH="
390390 + gccPath.replaceCharacter (' \\ ' , ' /' )
391391 + " PROJECT_NAME=" + name;
392392
393393 Toolchain::startShellScript (buildScript, this );
394394#else
395395 String buildScript = make.getFullPathName ()
396- + " -j4 -f " + sourceDir.getChildFile (" Makefile" ).getFullPathName ()
396+ + " -j4 -f " + sourceDir.getChildFile (" Makefile" ).getFullPathName (). quoted ()
397397 + " GCC_PATH=" + gccPath
398398 + " PROJECT_NAME=" + name;
399399
0 commit comments