Skip to content

Commit 6280a69

Browse files
authored
Remove wsman client libraries from the Microsoft.PowerShell.Native NuGet package (#84)
1 parent 99ea9db commit 6280a69

File tree

2 files changed

+4
-30
lines changed

2 files changed

+4
-30
lines changed

build.psm1

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,7 @@ function Start-BuildPowerShellNativePackage
529529

530530
[Parameter(Mandatory = $true)]
531531
[ValidateScript({Test-Path $_ -PathType Leaf})]
532-
[string] $macOSZipPath,
533-
534-
[Parameter(Mandatory = $true)]
535-
[ValidateScript({Test-Path $_ -PathType Leaf})]
536-
[string] $psrpZipPath
532+
[string] $macOSZipPath
537533
)
538534

539535
if(-not (Test-Path $PackageRoot))
@@ -554,7 +550,6 @@ function Start-BuildPowerShellNativePackage
554550
$BinFolderLinuxARM64 = Join-Path $tempExtractionPath "LinuxARM64"
555551
$BinFolderLinuxAlpine = Join-Path $tempExtractionPath "LinuxAlpine"
556552
$BinFolderMacOS = Join-Path $tempExtractionPath "MacOS"
557-
$BinFolderPSRP = Join-Path $tempExtractionPath "PSRP"
558553

559554
Expand-Archive -Path $WindowsX64ZipPath -DestinationPath $BinFolderX64 -Force
560555
Expand-Archive -Path $WindowsX86ZipPath -DestinationPath $BinFolderX86 -Force
@@ -565,11 +560,10 @@ function Start-BuildPowerShellNativePackage
565560
Expand-Archive -Path $LinuxARMZipPath -DestinationPath $BinFolderLinuxARM -Force
566561
Expand-Archive -Path $LinuxARM64ZipPath -DestinationPath $BinFolderLinuxARM64 -Force
567562
Expand-Archive -Path $macOSZipPath -DestinationPath $BinFolderMacOS -Force
568-
Expand-Archive -Path $psrpZipPath -DestinationPath $BinFolderPSRP -Force
569563

570564
PlaceWindowsNativeBinaries -PackageRoot $PackageRoot -BinFolderX64 $BinFolderX64 -BinFolderX86 $BinFolderX86 -BinFolderARM $BinFolderARM -BinFolderARM64 $BinFolderARM64
571565

572-
PlaceUnixBinaries -PackageRoot $PackageRoot -BinFolderLinux $BinFolderLinux -BinFolderLinuxARM $BinFolderLinuxARM -BinFolderLinuxARM64 $BinFolderLinuxARM64 -BinFolderOSX $BinFolderMacOS -BinFolderPSRP $BinFolderPSRP -BinFolderLinuxAlpine $BinFolderLinuxAlpine
566+
PlaceUnixBinaries -PackageRoot $PackageRoot -BinFolderLinux $BinFolderLinux -BinFolderLinuxARM $BinFolderLinuxARM -BinFolderLinuxARM64 $BinFolderLinuxARM64 -BinFolderOSX $BinFolderMacOS -BinFolderLinuxAlpine $BinFolderLinuxAlpine
573567

574568
$Nuspec = @'
575569
<?xml version="1.0" encoding="utf-8"?>
@@ -657,11 +651,7 @@ function PlaceUnixBinaries
657651

658652
[Parameter(Mandatory = $true)]
659653
[ValidateScript({Test-Path $_ -PathType Container})]
660-
$BinFolderOSX,
661-
662-
[Parameter(Mandatory = $true)]
663-
[ValidateScript({Test-Path $_ -PathType Container})]
664-
$BinFolderPSRP
654+
$BinFolderOSX
665655
)
666656

667657
$RuntimePathLinux = New-Item -ItemType Directory -Path (Join-Path $PackageRoot -ChildPath 'runtimes/linux-x64/native') -Force
@@ -675,12 +665,6 @@ function PlaceUnixBinaries
675665
Copy-Item "$BinFolderLinuxARM64\*" -Destination $RuntimePathLinuxARM64 -Verbose
676666
Copy-Item "$BinFolderLinuxAlpine\*" -Destination $RuntimePathLinuxAlpine -Verbose
677667
Copy-Item "$BinFolderOSX\*" -Destination $RuntimePathOSX -Verbose
678-
679-
## LinuxARM is not supported by PSRP
680-
Get-ChildItem -Recurse $BinFolderPSRP/*.dylib | ForEach-Object { Copy-Item $_.FullName -Destination $RuntimePathOSX -Verbose }
681-
Get-ChildItem -Recurse $BinFolderPSRP/*.so | ForEach-Object { Copy-Item $_.FullName -Destination $RuntimePathLinux -Verbose }
682-
683-
Copy-Item $BinFolderPSRP/version.txt -Destination "$PackageRoot/PSRP_version.txt" -Verbose
684668
}
685669

686670
<#

tools/releaseBuild/yaml/nuget.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@ steps:
1313
targetPath: "$(System.ArtifactsDirectory)/signed"
1414
displayName: Download signed windows native packages
1515

16-
- powershell: |
17-
$null = New-Item $(PackageRoot) -ItemType Directory -Force -Verbose
18-
if(-not (Test-Path '$(System.ArtifactsDirectory)/release' ))
19-
{
20-
New-Item -ItemType Directory -Path '$(System.ArtifactsDirectory)/release' -Force
21-
}
22-
Invoke-WebRequest -Uri '$(PSRPBlobUrl)' -OutFile $(System.ArtifactsDirectory)/release/psrp.zip -Verbose
23-
displayName: 'Download PSRP package'
24-
2516
- powershell: 'Get-ChildItem $(System.ArtifactsDirectory)/release'
2617
displayName: 'Capture downloaded zips'
2718

@@ -80,9 +71,8 @@ steps:
8071
$LinuxARM64ZipPath = Join-Path "$(System.ArtifactsDirectory)/release" 'linux-arm64-symbols.zip'
8172
$LinuxAlpineZipPath = Join-Path "$(System.ArtifactsDirectory)/release" 'linux-musl-x64-symbols.zip'
8273
$macOSZipPath = Join-Path "$(System.ArtifactsDirectory)/release" 'osx-symbols.zip'
83-
$psrpZipPath = Join-Path "$(System.ArtifactsDirectory)/release" 'psrp.zip'
8474
85-
Start-BuildPowerShellNativePackage -PackageRoot $PackageRoot -Version $(PackageVersion) -WindowsX64ZipPath $WindowsX64ZipPath -WindowsX86ZipPath $WindowsX86ZipPath -WindowsARMZipPath $WindowsARMZipPath -WindowsARM64ZipPath $WindowsARM64ZipPath -LinuxZipPath $LinuxZipPath -LinuxARMZipPath $LinuxARMZipPath -LinuxARM64ZipPath $LinuxARM64ZipPath -LinuxAlpineZipPath $LinuxAlpineZipPath -macOSZipPath $macOSZipPath -psrpZipPath $psrpZipPath
75+
Start-BuildPowerShellNativePackage -PackageRoot $PackageRoot -Version $(PackageVersion) -WindowsX64ZipPath $WindowsX64ZipPath -WindowsX86ZipPath $WindowsX86ZipPath -WindowsARMZipPath $WindowsARMZipPath -WindowsARM64ZipPath $WindowsARM64ZipPath -LinuxZipPath $LinuxZipPath -LinuxARMZipPath $LinuxARMZipPath -LinuxARM64ZipPath $LinuxARM64ZipPath -LinuxAlpineZipPath $LinuxAlpineZipPath -macOSZipPath $macOSZipPath
8676
8777
displayName: 'Collate NuGet package structure'
8878

0 commit comments

Comments
 (0)