@@ -93,7 +93,7 @@ function copyAssets(assets, generatedAppDir, callback) {
93
93
return Q . resolve ( ) . nodeify ( callback ) ;
94
94
}
95
95
96
- function createApps ( w3cManifestInfo , rootDir , platforms , options , callback ) {
96
+ function createApps ( w3cManifestInfo , rootDir , platforms , options , href , callback ) {
97
97
// validate arguments
98
98
if ( arguments . length < 3 ) {
99
99
return Q . reject ( new Error ( 'One or more required arguments are missing.' ) ) . nodeify ( callback ) ;
@@ -106,6 +106,10 @@ function createApps (w3cManifestInfo, rootDir, platforms, options, callback) {
106
106
}
107
107
}
108
108
109
+ if ( ! href ) {
110
+ href = '/' ;
111
+ }
112
+
109
113
// determine the path where the app will be created
110
114
options . appName = utils . sanitizeName ( w3cManifestInfo . content . short_name ) ;
111
115
var generatedAppDir = path . join ( rootDir , options . appName ) ;
@@ -134,7 +138,7 @@ function createApps (w3cManifestInfo, rootDir, platforms, options, callback) {
134
138
return Q . resolve ( generatedAppDir ) . then ( function ( generatedAppOutputDir ) {
135
139
return fileTools . mkdirp ( generatedAppOutputDir ) . then ( function ( ) {
136
140
var w3cManifestInfoCopy = JSON . parse ( JSON . stringify ( w3cManifestInfo ) ) ;
137
- return Q . ninvoke ( platform , 'create' , w3cManifestInfoCopy , generatedAppOutputDir , options ) . then ( function ( ) {
141
+ return Q . ninvoke ( platform , 'create' , w3cManifestInfoCopy , generatedAppOutputDir , options , href ) . then ( function ( ) {
138
142
log . info ( 'The ' + platform . name + ' app was created successfully!' ) ;
139
143
} )
140
144
. catch ( function ( err ) {
0 commit comments