Skip to content

Commit a5b6d8f

Browse files
windows open in IDE
1 parent 169230d commit a5b6d8f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

projectGeneratorElectron/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -814,10 +814,13 @@ ipc.on('launchProjectinIDE', function(event, arg) {
814814
exec('xdg-open ' + linuxPath, function callback(error, stdout, stderr){
815815
return;
816816
});
817-
} else {
818-
console.log("Unsupported platform for Launch feature...");
819-
event.sender.send('projectLaunchCompleted', false );
820-
return;
817+
} else {
818+
var windowsPath = pathTemp.join(fullPath, arg['projectName'] + '.sln');
819+
console.log( windowsPath );
820+
var exec = require('child_process').exec;
821+
exec('start ' + windowsPath, function callback(error, stdout, stderr){
822+
return;
823+
});
821824
}
822825
});
823826

0 commit comments

Comments
 (0)