Skip to content

Commit 51986b7

Browse files
spaces working on osx now for open in ide
1 parent b6d28cb commit 51986b7

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

projectGeneratorElectron/index.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -807,16 +807,11 @@ ipc.on('launchProjectinIDE', function(event, arg) {
807807
if( arg.platform == 'osx' ){
808808
var osxPath = pathTemp.join(fullPath, arg['projectName'] + '.xcodeproj');
809809
console.log( osxPath );
810-
osxPath = osxPath.replace(/ /g, '\\ ');
811-
if( fsTemp.statSync(osxPath).isDirectory() == true ){ // note: .xcodeproj is a folder, not a file
812-
var exec = require('child_process').exec;
813-
exec('open ' + osxPath, function callback(error, stdout, stderr){
814-
return;
815-
});
816-
}
817-
else {
818-
console.log('OSX project file not found!');
819-
}
810+
osxPath = "\"" + osxPath + "\"";
811+
var exec = require('child_process').exec;
812+
exec('open ' + osxPath, function callback(error, stdout, stderr){
813+
return;
814+
});
820815
} else if( arg.platform == 'linux' || arg.platform == 'linux64' ){
821816
var linuxPath = pathTemp.join(fullPath, arg['projectName'] + '.qbs');
822817
linuxPath = linuxPath.replace(/ /g, '\\ ');

0 commit comments

Comments
 (0)