@@ -54,11 +54,14 @@ gradle.projectsEvaluated {
5454
5555 def resourcesMapTempFileName = " CodePushResourcesMap-" + java. util. UUID . randomUUID(). toString(). substring(0 ,8 ) + " .json"
5656
57+ // Additional node commandline arguments
58+ def nodeExecutableAndArgs = config. nodeExecutableAndArgs ?: [" node" ]
59+
5760 // Make this task run right before the bundle task
5861 def recordFilesBeforeBundleCommand = tasks. create(
5962 name : " recordFilesBeforeBundleCommand${ targetName} " ,
6063 type : Exec ) {
61- commandLine " node " , " ${ nodeModulesPath} /react-native-code-push/scripts/recordFilesBeforeBundleCommand.js" , resourcesDir, resourcesMapTempFileName
64+ commandLine ( * nodeExecutableAndArgs , " ${ nodeModulesPath} /react-native-code-push/scripts/recordFilesBeforeBundleCommand.js" , resourcesDir, resourcesMapTempFileName)
6265 }
6366
6467 recordFilesBeforeBundleCommand. dependsOn(" merge${ targetName} Resources" )
@@ -69,7 +72,7 @@ gradle.projectsEvaluated {
6972 def generateBundledResourcesHash = tasks. create(
7073 name : " generateBundledResourcesHash${ targetName} " ,
7174 type : Exec ) {
72- commandLine " node " , " ${ nodeModulesPath} /react-native-code-push/scripts/generateBundledResourcesHash.js" , resourcesDir, " $jsBundleDir /$bundleAssetName " , jsBundleDir, resourcesMapTempFileName
75+ commandLine ( * nodeExecutableAndArgs , " ${ nodeModulesPath} /react-native-code-push/scripts/generateBundledResourcesHash.js" , resourcesDir, " $jsBundleDir /$bundleAssetName " , jsBundleDir, resourcesMapTempFileName)
7376 }
7477
7578 generateBundledResourcesHash. dependsOn(" bundle${ targetName} JsAndAssets" )
0 commit comments