@@ -652,6 +652,7 @@ ipc.on('update', function(event, arg) {
652
652
var templateString = "" ;
653
653
var recursiveString = "" ;
654
654
var verboseString = "" ;
655
+ var rootPath = defaultOfPath ;
655
656
656
657
if ( update [ 'updatePath' ] !== null ) {
657
658
updatePath = update [ 'updatePath' ] ;
@@ -668,6 +669,7 @@ ipc.on('update', function(event, arg) {
668
669
669
670
if ( update [ 'ofPath' ] !== null ) {
670
671
pathString = "-o\"" + update [ 'ofPath' ] + "\"" ;
672
+ rootPath = update [ 'ofPath' ] ;
671
673
}
672
674
673
675
if ( update [ 'updateRecursive' ] === true ) {
@@ -679,7 +681,10 @@ ipc.on('update', function(event, arg) {
679
681
}
680
682
681
683
var pgApp = pathTemp . normalize ( pathTemp . join ( pathTemp . join ( __dirname , "app" ) , "projectGenerator" ) ) ;
682
-
684
+
685
+ if ( hostplatform == "linux" || hostplatform == "linux64" ) {
686
+ pgApp = pathTemp . join ( rootPath , "apps/projectGenerator/commandLine/bin/projectGenerator" ) ;
687
+ }
683
688
684
689
if ( arg . platform == 'osx' || arg . platform == 'linux' || arg . platform == 'linux64' ) {
685
690
pgApp = pgApp . replace ( / / g, '\\ ' ) ;
@@ -734,7 +739,7 @@ ipc.on('generate', function(event, arg) {
734
739
var platformString = "" ;
735
740
var templateString = "" ;
736
741
var verboseString = "" ;
737
-
742
+ var rootPath = defaultOfPath ;
738
743
739
744
740
745
if ( generate [ 'platformList' ] !== null ) {
@@ -754,6 +759,7 @@ ipc.on('generate', function(event, arg) {
754
759
755
760
if ( generate [ 'ofPath' ] !== null ) {
756
761
pathString = "-o\"" + generate [ 'ofPath' ] + "\"" ;
762
+ rootPath = generate [ 'ofPath' ] ;
757
763
}
758
764
759
765
if ( generate [ 'verbose' ] === true ) {
@@ -766,8 +772,9 @@ ipc.on('generate', function(event, arg) {
766
772
}
767
773
768
774
var pgApp = "" ;
769
- if ( hostplatform == "linux" ) {
770
- pgApp = "projectGenerator" ;
775
+ if ( hostplatform == "linux" || hostplatform == "linux64" ) {
776
+ pgApp = pathTemp . join ( rootPath , "apps/projectGenerator/commandLine/bin/projectGenerator" ) ;
777
+ //pgApp = "projectGenerator";
771
778
} else {
772
779
pgApp = pathTemp . normalize ( pathTemp . join ( pathTemp . join ( __dirname , "app" ) , "projectGenerator" ) ) ;
773
780
}
0 commit comments