@@ -469,6 +469,10 @@ function Start-BuildPowerShellNativePackage
469
469
[ValidateScript ({Test-Path $_ - PathType Leaf})]
470
470
[string ] $macOSZipPath ,
471
471
472
+ [Parameter (Mandatory = $true )]
473
+ [ValidateScript ({Test-Path $_ - PathType Leaf})]
474
+ [string ] $psrpZipPath ,
475
+
472
476
[Parameter (Mandatory = $true )]
473
477
[string ] $NuGetOutputPath ,
474
478
@@ -491,6 +495,7 @@ function Start-BuildPowerShellNativePackage
491
495
$BinFolderLinux = Join-Path $tempExtractionPath " Linux"
492
496
$BinFolderLinuxARM = Join-Path $tempExtractionPath " LinuxARM"
493
497
$BinFolderMacOS = Join-Path $tempExtractionPath " MacOS"
498
+ $BinFolderPSRP = Join-Path $tempExtractionPath " PSRP"
494
499
495
500
Expand-Archive - Path $WindowsX64ZipPath - DestinationPath $BinFolderX64 - Force
496
501
Expand-Archive - Path $WindowsX86ZipPath - DestinationPath $BinFolderX86 - Force
@@ -499,10 +504,11 @@ function Start-BuildPowerShellNativePackage
499
504
Expand-Archive - Path $LinuxZipPath - DestinationPath $BinFolderLinux - Force
500
505
Expand-Archive - Path $LinuxARMZipPath - DestinationPath $BinFolderLinuxARM - Force
501
506
Expand-Archive - Path $macOSZipPath - DestinationPath $BinFolderMacOS - Force
507
+ Expand-Archive - Path $psrpZipPath - DestinationPath $BinFolderPSRP - Force
502
508
503
509
PlaceWindowsNativeBinaries - PackageRoot $PackageRoot - BinFolderX64 $BinFolderX64 - BinFolderX86 $BinFolderX86 - BinFolderARM $BinFolderARM - BinFolderARM64 $BinFolderARM64
504
510
505
- PlaceUnixBinaries - PackageRoot $PackageRoot - BinFolderLinux $BinFolderLinux - BinFolderLinuxARM $BinFolderLinuxARM - BinFolderOSX $BinFolderMacOS
511
+ PlaceUnixBinaries - PackageRoot $PackageRoot - BinFolderLinux $BinFolderLinux - BinFolderLinuxARM $BinFolderLinuxARM - BinFolderOSX $BinFolderMacOS - BinFolderPSRP $BinFolderPSRP
506
512
507
513
$Nuspec = @'
508
514
<?xml version="1.0" encoding="utf-8"?>
@@ -569,7 +575,11 @@ function PlaceUnixBinaries
569
575
570
576
[Parameter (Mandatory = $true )]
571
577
[ValidateScript ({Test-Path $_ - PathType Container})]
572
- $BinFolderOSX
578
+ $BinFolderOSX ,
579
+
580
+ [Parameter (Mandatory = $true )]
581
+ [ValidateScript ({Test-Path $_ - PathType Container})]
582
+ $BinFolderPSRP
573
583
)
574
584
575
585
$RuntimePathLinux = New-Item - ItemType Directory - Path (Join-Path $PackageRoot - ChildPath ' runtimes/linux-x64/native' ) - Force
@@ -579,6 +589,12 @@ function PlaceUnixBinaries
579
589
Copy-Item " $BinFolderLinux \*" - Destination $RuntimePathLinux - Verbose
580
590
Copy-Item " $BinFolderLinuxARM \*" - Destination $RuntimePathLinuxARM - Verbose
581
591
Copy-Item " $BinFolderOSX \*" - Destination $RuntimePathOSX - Verbose
592
+
593
+ # # LinuxARM is not supported by PSRP
594
+ Get-ChildItem - Recurse $BinFolderPSRP /* .dylib | ForEach-Object { Copy-Item $_.FullName - Destination $RuntimePathOSX - Verbose }
595
+ Get-ChildItem - Recurse $BinFolderPSRP /* .so | ForEach-Object { Copy-Item $_.FullName - Destination $RuntimePathLinux - Verbose }
596
+
597
+ Copy-Item $BinFolderPSRP / version.txt - Destination " $PackageRoot /PSRP_version.txt" - Verbose
582
598
}
583
599
584
600
<#
0 commit comments