@@ -111,7 +111,7 @@ public override void Run(BuildContext context)
111111
112112 Directory . CreateDirectory ( targetDirectorymacOS . FullPath ) ;
113113
114- var filesmacOS = context . GetFiles ( new GlobPattern ( $ "{ nativeAssetsPathmacOS . FullPath } /*{ projectItem . DotNetNativeName } *dylib") , new GlobberSettings ( ) { IsCaseSensitive = false } ) ;
114+ var filesmacOS = context . GetFiles ( new GlobPattern ( $ "{ nativeAssetsPathmacOS . FullPath } /*{ projectItem . DotNetNativeName } *dylib") , new GlobberSettings ( ) { IsCaseSensitive = false } ) ;
115115 if ( filesmacOS . Count == 0 )
116116 {
117117 throw new CakeException ( $ "No native assets found in '{ nativeAssetsPathmacOS . FullPath } ' for project '{ projectItem . Name } '.") ;
@@ -122,6 +122,13 @@ public override void Run(BuildContext context)
122122 }
123123 context . CopyFiles ( filesmacOS , targetDirectorymacOS . FullPath ) ;
124124
125+ // Copy libnode dependencies for NodeJS
126+ if ( projectItem . DotNetNativeName == "NodeJS" )
127+ {
128+ var libnodeFilesmacOS = context . GetFiles ( new GlobPattern ( $ "{ nativeAssetsPathmacOS . FullPath } /libnode*") , new GlobberSettings ( ) { IsCaseSensitive = false } ) ;
129+ context . CopyFiles ( libnodeFilesmacOS , targetDirectorymacOS . FullPath ) ;
130+ }
131+
125132 continue ;
126133 }
127134
@@ -144,6 +151,13 @@ public override void Run(BuildContext context)
144151
145152 var files = context . GetFiles ( new GlobPattern ( $ "{ nativeAssetsPath . FullPath } /**/*.*") ) ;
146153 context . CopyFiles ( files , targetDirectory . FullPath ) ;
154+
155+ // Copy libnode dependencies for NodeJS
156+ if ( projectItem . DotNetNativeName == "NodeJS" )
157+ {
158+ var libnodeFiles = context . GetFiles ( new GlobPattern ( $ "{ nativeAssetsPath . FullPath } /libnode*") , new GlobberSettings ( ) { IsCaseSensitive = false } ) ;
159+ context . CopyFiles ( libnodeFiles , targetDirectory . FullPath ) ;
160+ }
147161 }
148162 }
149163
0 commit comments