@@ -54,11 +54,14 @@ gradle.projectsEvaluated {
54
54
55
55
def resourcesMapTempFileName = " CodePushResourcesMap-" + java. util. UUID . randomUUID(). toString(). substring(0 ,8 ) + " .json"
56
56
57
+ // Additional node commandline arguments
58
+ def nodeExecutableAndArgs = config. nodeExecutableAndArgs ?: [" node" ]
59
+
57
60
// Make this task run right before the bundle task
58
61
def recordFilesBeforeBundleCommand = tasks. create(
59
62
name : " recordFilesBeforeBundleCommand${ targetName} " ,
60
63
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)
62
65
}
63
66
64
67
recordFilesBeforeBundleCommand. dependsOn(" merge${ targetName} Resources" )
@@ -69,7 +72,7 @@ gradle.projectsEvaluated {
69
72
def generateBundledResourcesHash = tasks. create(
70
73
name : " generateBundledResourcesHash${ targetName} " ,
71
74
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)
73
76
}
74
77
75
78
generateBundledResourcesHash. dependsOn(" bundle${ targetName} JsAndAssets" )
0 commit comments