Skip to content

Commit e2f5ec0

Browse files
committed
Add package icon and readme to NuGet package
Updated ApkReader.csproj to include app.png as the package icon and README.md as the package readme. Enabled automatic package generation on build and ensured both files are packed with the NuGet package.
1 parent 82254f6 commit e2f5ec0

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/ApkReader/ApkInfoHandler.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ public void Execute(XmlDocument androidManifest, ArscFile resources, ApkInfo apk
158158
}
159159
if (apkInfo.Icons.Count > 0)
160160
{
161-
int maxDpi = -1;
162161
string maxImageIcon = null;
163162
int maxImageDpi = -1;
164163
string maxXmlIcon = null;

src/ApkReader/ApkReader.csproj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
<PackageTags>android apk apk-reader aapt</PackageTags>
1515
<RepositoryType>git</RepositoryType>
1616
<GenerateDocumentationFile>true</GenerateDocumentationFile>
17+
<PackageReadmeFile>README.md</PackageReadmeFile>
18+
<PackageIcon>app.png</PackageIcon>
19+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1720
</PropertyGroup>
1821

1922
<PropertyGroup Condition="'$(TargetFramework)'=='net462'">
@@ -33,4 +36,14 @@
3336
<EmbeddedResource Include="Values\public.xml" />
3437
</ItemGroup>
3538

39+
<ItemGroup>
40+
<Content Include="app.png">
41+
<Pack>True</Pack>
42+
<PackagePath>\</PackagePath>
43+
</Content>
44+
45+
<None Include="..\..\README.md" Pack="true" PackagePath="" />
46+
<None Remove="app.png" />
47+
</ItemGroup>
48+
3649
</Project>

src/ApkReader/app.png

39.5 KB
Loading

0 commit comments

Comments
 (0)