Skip to content

Commit 21ae9ed

Browse files
committed
logo
1 parent d1075ba commit 21ae9ed

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/nuget-publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
with:
1818
dotnet-version: '10.0.x' # 可根据你的项目适当调整
1919

20+
- name: Copy icon.png to all project directories
21+
run: |
22+
for proj in src/**/*.csproj; do
23+
cp logo.png "$(dirname "$proj")/"
24+
done
25+
2026
- name: Restore dependencies
2127
run: |
2228
for proj in src/**/*.csproj; do
@@ -35,7 +41,7 @@ jobs:
3541
- name: Pack all projects in src
3642
run: |
3743
for proj in src/**/*.csproj; do
38-
dotnet pack "$proj" --configuration Release --no-build --output ./nupkgs /p:Version=${VERSION}
44+
dotnet pack "$proj" --configuration Release --no-build --output ./nupkgs /p:Version=${VERSION} /p:Pack=true
3945
done
4046
4147
- name: Push all packages to NuGet

CommonCrawl.Net.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<File Path="configureawait.props" />
1010
<File Path="Directory.Build.props" />
1111
<File Path="Directory.Packages.props" />
12+
<File Path="logo.png" />
1213
<File Path="README.fr-FR.md" />
1314
<File Path="README.ja-JP.md" />
1415
<File Path="README.md" />

Directory.Build.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Authors>sunny</Authors>
88
<RootNamespace>CommonCrawl</RootNamespace>
9+
<PackageIcon>logo.png</PackageIcon>
910
<PackageReadmeFile>README.md</PackageReadmeFile>
1011
<RepositoryUrl>https://github.com/m67186636/CommonCrawl.Net</RepositoryUrl>
1112
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
1213
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
1314
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
15+
<Pack>false</Pack>
1416
</PropertyGroup>
15-
<ItemGroup>
17+
<ItemGroup Condition=" '$(Pack)' == 'true' ">
1618
<None Include="README.md" Pack="true" PackagePath="" />
1719
<None Include="README.ja-JP.md" Pack="true" PackagePath="" />
1820
<None Include="README.fr-FR.md" Pack="true" PackagePath="" />
1921
<None Include="README.zh-CN.md" Pack="true" PackagePath="" />
22+
<None Include="logo.png" Pack="true" PackagePath="" />
2023
</ItemGroup>
2124
</Project>

logo.png

912 Bytes
Loading

0 commit comments

Comments
 (0)