@@ -567,7 +567,7 @@ ipc.on('update', function(event, arg) {
567
567
if ( arg . platform == 'osx' || arg . platform == 'linux' || arg . platform == 'linux64' ) {
568
568
pgApp = pgApp . replace ( / / g, '\\ ' ) ;
569
569
} else {
570
- pgApp = pgApp . replace ( / / g , '^ ' ) ;
570
+ pgApp = "\"" + pgApp + "\"" ;
571
571
}
572
572
573
573
var wholeString = pgApp + " " + recursiveString + " " + verboseString + " " + pathString + " " + platformString + " " + updatePath ;
@@ -653,7 +653,7 @@ ipc.on('generate', function(event, arg) {
653
653
if ( arg . platform == 'osx' || arg . platform == 'linux' || arg . platform == 'linux64' ) {
654
654
pgApp = pgApp . replace ( / / g, '\\ ' ) ;
655
655
} else {
656
- pgApp = pgApp . replace ( / / g , '^ ' ) ;
656
+ pgApp = pgApp = "\"" + pgApp + "\"" ;
657
657
}
658
658
659
659
var wholeString = pgApp + " " + verboseString + " " + pathString + " " + addonString + " " + platformString + " " + projectString ;
@@ -807,6 +807,7 @@ ipc.on('launchProjectinIDE', function(event, arg) {
807
807
if ( arg . platform == 'osx' ) {
808
808
var osxPath = pathTemp . join ( fullPath , arg [ 'projectName' ] + '.xcodeproj' ) ;
809
809
console . log ( osxPath ) ;
810
+ osxPath = osxPath . replace ( / / g, '\\ ' ) ;
810
811
if ( fsTemp . statSync ( osxPath ) . isDirectory ( ) == true ) { // note: .xcodeproj is a folder, not a file
811
812
var exec = require ( 'child_process' ) . exec ;
812
813
exec ( 'open ' + osxPath , function callback ( error , stdout , stderr ) {
@@ -818,6 +819,7 @@ ipc.on('launchProjectinIDE', function(event, arg) {
818
819
}
819
820
} else if ( arg . platform == 'linux' || arg . platform == 'linux64' ) {
820
821
var linuxPath = pathTemp . join ( fullPath , arg [ 'projectName' ] + '.qbs' ) ;
822
+ linuxPath = linuxPath . replace ( / / g, '\\ ' ) ;
821
823
console . log ( linuxPath ) ;
822
824
var exec = require ( 'child_process' ) . exec ;
823
825
exec ( 'xdg-open ' + linuxPath , function callback ( error , stdout , stderr ) {
@@ -826,6 +828,7 @@ ipc.on('launchProjectinIDE', function(event, arg) {
826
828
} else {
827
829
var windowsPath = pathTemp . join ( fullPath , arg [ 'projectName' ] + '.sln' ) ;
828
830
console . log ( windowsPath ) ;
831
+ windowsPath = "\"" + windowsPath + "\"" ;
829
832
var exec = require ( 'child_process' ) . exec ;
830
833
exec ( 'start ' + windowsPath , function callback ( error , stdout , stderr ) {
831
834
return ;
0 commit comments