Skip to content

Commit 1682d35

Browse files
committed
Added a PACKAGE-DESCRIPTION.md files to NuGet packages
1 parent 3ca5dbe commit 1682d35

File tree

69 files changed

+156
-257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+156
-257
lines changed

build/initialize-standard-nuspec-properties.targets

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
<title>$(Title)</title>
3434
</_TitleElement>
3535

36+
<_ReadmeElement/>
37+
<_ReadmeElement Condition="'$(PackageReadmeFile)' != ''">
38+
<readme>$(PackageReadmeFile)</readme>
39+
</_ReadmeElement>
40+
41+
<_ReadmeFileElement/>
42+
<_ReadmeFileElement Condition="'$(PackageReadmeFile)' != ''">
43+
<file src="$(PackageReadmeFullPath)" target="$(PackageReadmeFile)" />
44+
</_ReadmeFileElement>
45+
3646
<_LicenseElement/>
3747
<_LicenseElement Condition="'$(PackageLicenseExpression)' != ''">
3848
<license type="expression">$(PackageLicenseExpression)</license>
@@ -96,6 +106,7 @@
96106
<version>$(PackageVersion)</version>
97107
<authors>$(Authors)</authors>
98108
<requireLicenseAcceptance>$(PackageRequireLicenseAcceptance)</requireLicenseAcceptance>
109+
$(_ReadmeElement)
99110
$(_TagsElement)
100111
$(_LicenseElement)
101112
$(_IconElement)
@@ -110,8 +121,10 @@
110121
</_CommonMetadataElements>
111122

112123
<_CommonFileElements>
124+
$(CommonFileElements)
113125
$(_IconFileElement)
114126
$(_LicenseFileElement)
127+
$(_ReadmeFileElement)
115128
</_CommonFileElements>
116129
</PropertyGroup>
117130

build/nuget-common.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<PropertyGroup>
33
<Title>$(Product)</Title>
44
<Authors>Andrey Taritsyn</Authors>
5+
<PackageReadmeFile>PACKAGE-DESCRIPTION.md</PackageReadmeFile>
6+
<PackageReadmeFullPath>$(PackageReadmeFile)</PackageReadmeFullPath>
57
<PackageCommonTags>JavaScriptEngineSwitcher;JavaScript;ECMAScript</PackageCommonTags>
68
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
79
<PackageLicenseFullPath>../../LICENSE.txt</PackageLicenseFullPath>

build/nuget-for-dotnet-lib.props

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,10 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<None Include="$(PackageLicenseFullPath)">
16-
<PackagePath>/</PackagePath>
17-
<Pack>true</Pack>
18-
<Visible>false</Visible>
19-
</None>
20-
<None Include="$(PackageIconFullPath)">
21-
<PackagePath>$(PackageIcon)</PackagePath>
22-
<Pack>true</Pack>
23-
<Visible>false</Visible>
24-
</None>
15+
<None Include="$(PackageLicenseFullPath)" PackagePath="/" Pack="true" Visible="false" />
16+
<None Include="$(PackageIconFullPath)" PackagePath="$(PackageIcon)" Pack="true" Visible="false" />
17+
18+
<Content Include="$(PackageReadmeFullPath)" PackagePath="$(PackageReadmeFile)" Pack="true" />
19+
<Content Include="readme.txt" PackagePath="/" Pack="true" />
2520
</ItemGroup>
2621
</Project>

build/nuget-for-native-lib.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
<PropertyGroup>
55
<IncludeBuildOutput>false</IncludeBuildOutput>
66
<NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile>
7+
<CommonFileElements>
8+
<file src="readme.txt" />
9+
</CommonFileElements>
710
</PropertyGroup>
811
</Project>

src/JavaScriptEngineSwitcher.ChakraCore.Native.linux-x64/JavaScriptEngineSwitcher.ChakraCore.Native.linux-x64.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
<Import Project="../../build/initialize-standard-nuspec-properties.targets" />
1212

1313
<PropertyGroup>
14-
<Description>This package complements the JavaScriptEngineSwitcher.ChakraCore package and contains the native implementation of ChakraCore version of January 26, 2023 for Linux (x64).
15-
16-
This package is only compatible with .NET Core.</Description>
14+
<Description>This package complements the JavaScriptEngineSwitcher.ChakraCore package and contains the native implementation of ChakraCore for Linux (x64).</Description>
1715
<PackageTags>$(PackageCommonTags);ChakraCore;Linux;x64</PackageTags>
1816
<PackageIconFullPath>../../Icons/JavaScriptEngineSwitcher_ChakraCore_Logo128x128.png</PackageIconFullPath>
1917
<PackageReleaseNotes>ChakraCore was updated to version of January 26, 2023.</PackageReleaseNotes>

src/JavaScriptEngineSwitcher.ChakraCore.Native.linux-x64/JavaScriptEngineSwitcher.ChakraCore.Native.linux-x64.nuspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<files>
77
$CommonFileElements$
88
<file src="../../lib/ChakraCore/runtimes/linux-x64/native/libChakraCore.so" target="runtimes/linux-x64/native/" />
9-
<file src="../../Licenses/chakra-core-license.txt" target="chakra-core-license.txt" />
10-
<file src="readme.txt" />
9+
<file src="../../Licenses/chakra-core-license.txt" target="/" />
1110
</files>
1211
</package>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This package complements the [JavaScriptEngineSwitcher.ChakraCore](https://www.nuget.org/packages/JavaScriptEngineSwitcher.ChakraCore) package and contains the native implementation of [ChakraCore](https://github.com/chakra-core/ChakraCore) version of January 26, 2023 for Linux (x64).
2+
3+
This package is only compatible with .NET Core.

src/JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64/JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
<Import Project="../../build/initialize-standard-nuspec-properties.targets" />
1212

1313
<PropertyGroup>
14-
<Description>This package complements the JavaScriptEngineSwitcher.ChakraCore package and contains the native implementation of ChakraCore version of January 26, 2023 for OS X (x64).
15-
16-
This package is only compatible with .NET Core.</Description>
14+
<Description>This package complements the JavaScriptEngineSwitcher.ChakraCore package and contains the native implementation of ChakraCore for OS X (x64).</Description>
1715
<PackageTags>$(PackageCommonTags);ChakraCore;macOS;OSX;x64</PackageTags>
1816
<PackageIconFullPath>../../Icons/JavaScriptEngineSwitcher_ChakraCore_Logo128x128.png</PackageIconFullPath>
1917
<PackageReleaseNotes>ChakraCore was updated to version of January 26, 2023.</PackageReleaseNotes>

src/JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64/JavaScriptEngineSwitcher.ChakraCore.Native.osx-x64.nuspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<files>
77
$CommonFileElements$
88
<file src="../../lib/ChakraCore/runtimes/osx-x64/native/libChakraCore.dylib" target="runtimes/osx-x64/native/" />
9-
<file src="../../Licenses/chakra-core-license.txt" target="chakra-core-license.txt" />
10-
<file src="readme.txt" />
9+
<file src="../../Licenses/chakra-core-license.txt" target="/" />
1110
</files>
1211
</package>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This package complements the [JavaScriptEngineSwitcher.ChakraCore](https://www.nuget.org/packages/JavaScriptEngineSwitcher.ChakraCore) package and contains the native implementation of [ChakraCore](https://github.com/chakra-core/ChakraCore) version of January 26, 2023 for OS X (x64).
2+
3+
This package is only compatible with .NET Core.

0 commit comments

Comments
 (0)