@@ -421,9 +421,25 @@ string AndroidHome
421421 //Copy the linux binaries
422422 CopyAll ( @out . GlobFiles ( "dxvk-native-master/usr/lib/*" ) , runtimes / "linux-x64" / "native" ) ;
423423 CopyAll ( @out . GlobFiles ( "dxvk-native-master/usr/lib32/*" ) , runtimes / "linux-x86" / "native" ) ;
424-
425- PrUpdatedNativeBinary ( "DXVK" , OSPlatform . Linux ) ;
426- PrUpdatedNativeBinary ( "DXVK" , OSPlatform . Windows ) ;
424+
425+ var winx64 = runtimes / "win-x64" / "native" ;
426+ var winx86 = runtimes / "win-x86" / "native" ;
427+
428+ var linuxx64 = runtimes / "linux-x64" / "native" ;
429+ var linuxx86 = runtimes / "linux-x86" / "native" ;
430+
431+ var glob = string . Empty ;
432+ var files = winx64 . GlobFiles ( "*.dll" )
433+ . Concat ( winx86 . GlobFiles ( "*.dll" ) )
434+ . Concat ( linuxx64 . GlobFiles ( "*.so" ) )
435+ . Concat ( linuxx86 . GlobFiles ( "*.so" ) ) ;
436+
437+ glob = files . Aggregate ( glob , ( current , path ) => current + $ "\" { path } \" ") ;
438+
439+ PrUpdatedNativeBinary
440+ (
441+ "DXVK" , glob
442+ ) ;
427443 }
428444 )
429445 ) ;
@@ -498,7 +514,7 @@ void CopyAs(AbsolutePath @out, string from, string to)
498514 )
499515 ) ;
500516
501- void PrUpdatedNativeBinary ( string name , OSPlatform ? platform = null )
517+ void PrUpdatedNativeBinary ( string name , [ CanBeNull ] string glob = null )
502518 {
503519 var pushableToken = EnvironmentInfo . GetVariable < string > ( "PUSHABLE_GITHUB_TOKEN" ) ;
504520 var curBranch = GitCurrentBranch ( RootDirectory ) ;
@@ -511,19 +527,19 @@ void PrUpdatedNativeBinary(string name, OSPlatform? platform = null)
511527 ! curBranch . StartsWith ( "develop/" , StringComparison . OrdinalIgnoreCase ) )
512528 {
513529 // it's assumed that the pushable token was used to checkout the repo
514- var suffix = string . Empty ;
530+ var suffix = glob ;
515531
516- if ( ( platform == OSPlatform . Windows ) || ( ! platform . HasValue && OperatingSystem . IsWindows ( ) ) )
532+ if ( OperatingSystem . IsWindows ( ) )
517533 {
518- suffix = "/**/*.dll" ;
534+ suffix ?? = "/**/*.dll" ;
519535 }
520- else if ( ( platform == OSPlatform . OSX ) || ( ! platform . HasValue && OperatingSystem . IsMacOS ( ) ) )
536+ else if ( OperatingSystem . IsMacOS ( ) )
521537 {
522- suffix = "/**/*.dylib" ;
538+ suffix ?? = "/**/*.dylib" ;
523539 }
524- else if ( ( platform == OSPlatform . Linux ) || ( ! platform . HasValue && OperatingSystem . IsLinux ( ) ) )
540+ else if ( OperatingSystem . IsLinux ( ) )
525541 {
526- suffix = "/**/*.so*" ;
542+ suffix ?? = "/**/*.so*" ;
527543 }
528544
529545 Git ( "fetch --all" , RootDirectory ) ;
0 commit comments