@@ -54,16 +54,24 @@ module.exports = yeoman.generators.NamedBase.extend({
54
54
this . destinationPath ( path . join ( 'desktop' , 'CMakeLists.txt' ) ) ,
55
55
templateParams
56
56
) ;
57
- var buildScriptPath = process . platform === "win32" ? "build.bat" : "build.sh" ;
58
57
this . fs . copyTpl (
59
- this . templatePath ( buildScriptPath ) ,
60
- this . destinationPath ( path . join ( 'desktop' , buildScriptPath ) ) ,
58
+ this . templatePath ( 'build.bat' ) ,
59
+ this . destinationPath ( path . join ( 'desktop' , 'build.bat' ) ) ,
61
60
templateParams
62
61
) ;
63
- var runScriptPath = process . platform === "win32" ? "run-app.bat.in" : "run-app.sh.in" ;
64
62
this . fs . copyTpl (
65
- this . templatePath ( runScriptPath ) ,
66
- this . destinationPath ( path . join ( 'desktop' , runScriptPath ) ) ,
63
+ this . templatePath ( 'build.sh' ) ,
64
+ this . destinationPath ( path . join ( 'desktop' , 'build.sh' ) ) ,
65
+ templateParams
66
+ ) ;
67
+ this . fs . copyTpl (
68
+ this . templatePath ( 'run-app.bat.in' ) ,
69
+ this . destinationPath ( path . join ( 'desktop' , 'run-app.bat.in' ) ) ,
70
+ templateParams
71
+ ) ;
72
+ this . fs . copyTpl (
73
+ this . templatePath ( 'run-app.sh.in' ) ,
74
+ this . destinationPath ( path . join ( 'desktop' , 'run-app.sh.in' ) ) ,
67
75
templateParams
68
76
) ;
69
77
this . fs . copyTpl (
0 commit comments