Skip to content

Commit 38fbfb7

Browse files
Update nuget packaging to be compliant with NuGet.org (#58)
* Update nuspec for NuGet.org compliance * Update nuget packaging to be compliant with NuGet.org
1 parent 14dfaf1 commit 38fbfb7

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

assets/Powershell_black_64.png

3.21 KB
Loading

build.psm1

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -579,22 +579,25 @@ function Start-BuildPowerShellNativePackage
579579
<version>{0}</version>
580580
<authors>Microsoft</authors>
581581
<owners>Microsoft,PowerShell</owners>
582-
<requireLicenseAcceptance>true</requireLicenseAcceptance>
582+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
583583
<description>Native binaries for PowerShell Core</description>
584-
<projectUrl>https://github.com/PowerShell/PowerShell</projectUrl>
585-
<iconUrl>https://github.com/PowerShell/PowerShell/blob/master/assets/Powershell_black_64.png?raw=true</iconUrl>
586-
<license type="expression">MIT</license>
587-
<tags>PowerShell</tags>
588-
<language>en-US</language>
589-
<copyright>© Microsoft Corporation.</copyright>
590-
<contentFiles>
591-
<files include="**/*" buildAction="None" copyToOutput="true" flatten="false" />
592-
</contentFiles>
593-
</metadata>
584+
<projectUrl>https://github.com/PowerShell/PowerShell-Native</projectUrl>
585+
<icon>{1}</icon>
586+
<license type="expression">MIT</license>
587+
<tags>PowerShell</tags>
588+
<language>en-US</language>
589+
<copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>
590+
<contentFiles>
591+
<files include="**/*" buildAction="None" copyToOutput="true" flatten="false" />
592+
</contentFiles>
593+
</metadata>
594594
</package>
595595
'@
596596

597-
$Nuspec -f $Version | Out-File -FilePath (Join-Path $PackageRoot -ChildPath 'Microsoft.PowerShell.Native.nuspec') -Force
597+
$iconFileName = "Powershell_black_64.png"
598+
$iconPath = Join-Path $pwd -ChildPath "assets\$iconFileName" -Resolve
599+
600+
$Nuspec -f $Version, $iconPath | Out-File -FilePath (Join-Path $PackageRoot -ChildPath 'Microsoft.PowerShell.Native.nuspec') -Force
598601

599602
if(-not (Test-Path $NuGetOutputPath))
600603
{

0 commit comments

Comments
 (0)