Skip to content

Commit 87f753a

Browse files
author
John Luo
committed
Fixup nuspec packing
1 parent 586d8a3 commit 87f753a

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

src/Installers/Windows/GenerateNugetPackageWithMsi.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ param(
1111
[Parameter(Mandatory=$true)][string]$PackageVersion,
1212
[Parameter(Mandatory=$true)][string]$RepoRoot,
1313
[Parameter(Mandatory=$true)][string]$MajorVersion,
14-
[Parameter(Mandatory=$true)][string]$MinorVersion
14+
[Parameter(Mandatory=$true)][string]$MinorVersion,
15+
[Parameter(Mandatory=$true)][string]$PackageIconPath
1516
)
1617

1718
$NuGetDir = Join-Path $RepoRoot "artifacts\Tools\nuget\$Name\$Architecture"
@@ -27,5 +28,5 @@ if (-not (Test-Path $NuGetExe)) {
2728
wget https://dist.nuget.org/win-x86-commandline/v5.3.0/nuget.exe -OutFile $NuGetExe
2829
}
2930

30-
& $NuGetExe pack $NuspecFile -Version $PackageVersion -OutputDirectory $OutputDirectory -NoDefaultExcludes -NoPackageAnalysis -Properties ASPNETCORE_RUNTIME_MSI=$MsiPath`;ASPNETCORE_CAB_FILE=$CabPath`;ARCH=$Architecture`;MAJOR=$MajorVersion`;MINOR=$MinorVersion`;
31+
& $NuGetExe pack $NuspecFile -Version $PackageVersion -OutputDirectory $OutputDirectory -NoDefaultExcludes -NoPackageAnalysis -Properties ASPNETCORE_RUNTIME_MSI=$MsiPath`;ASPNETCORE_CAB_FILE=$CabPath`;ARCH=$Architecture`;MAJOR=$MajorVersion`;MINOR=$MinorVersion`;PACKAGE_ICON_PATH=$PackageIconPath`;
3132
Exit $LastExitCode

src/Installers/Windows/SharedFramework/SharedFramework.wixproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
'$(_GeneratedPackageVersion)' ^
107107
'$(RepoRoot)' ^
108108
'$(AspNetCoreMajorVersion)' ^
109-
'$(AspNetCoreMinorVersion)'" />
109+
'$(AspNetCoreMinorVersion)' ^
110+
'$(PackageIconFullPath)'" />
110111
</Target>
111112
</Project>

src/Installers/Windows/SharedFramework/SharedFrameworkPackage.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
<files>
1717
<file src="$ASPNETCORE_RUNTIME_MSI$" />
1818
<file src="$ASPNETCORE_CAB_FILE$" />
19-
<file src="$PackageIcon$" target="" />
19+
<file src="$PACKAGE_ICON_PATH$" target="" />
2020
</files>
2121
</package>

src/Installers/Windows/TargetingPack/TargetingPack.wixproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
'$(_GeneratedPackageVersion)' ^
102102
'$(RepoRoot)' ^
103103
'$(AspNetCoreMajorVersion)' ^
104-
'$(AspNetCoreMinorVersion)'" />
104+
'$(AspNetCoreMinorVersion)' ^
105+
'$(PackageIconFullPath)'" />
105106
</Target>
106107
</Project>

src/Installers/Windows/TargetingPack/TargetingPackPackage.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
</metadata>
1616
<files>
1717
<file src="$ASPNETCORE_RUNTIME_MSI$" />
18-
<file src="$PackageIcon$" target="" />
18+
<file src="$PACKAGE_ICON_PATH$" target="" />
1919
</files>
2020
</package>

0 commit comments

Comments
 (0)