Skip to content

Commit 10218d7

Browse files
committed
Add internal icon to .nupkg, add logo to README.md, slightly improve .nupkg description
1 parent c60b6ac commit 10218d7

File tree

5 files changed

+26
-14
lines changed

5 files changed

+26
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SqlDataComparison
1+
# ![logo](https://raw.githubusercontent.com/MightyOrm/SqlDataComparison/master/src/static/logo_32x32.png) SqlDataComparison
22

33
## Installation:
44

SqlDataComparison.nuspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Example usage:
1313
* EXEC sp_CompareData 'MyTable', 'RemoteDb..TheirTable'
1414
* EXEC sp_ExportAll 'MyTable', 'RemoteDb..TheirTable'
1515
* EXEC sp_ExportDeleted 'MyTable', 'RemoteDb..TheirTable'
16-
* EXEC sp_ExportDeleted 'MyTable', 'RemoteDb..TheirTable', @ids = '43-44'
16+
* EXEC sp_ImportChanged 'MyTable', 'RemoteDb..TheirTable', @ids = '43-44'
1717

1818
Supports:
1919

@@ -26,6 +26,7 @@ Supports:
2626
<copyright>Copyright (c) 2020 Mike Beaton</copyright>
2727
<projectUrl>https://github.com/MightyOrm/SqlDataComparison</projectUrl>
2828
<license type="expression">MIT</license>
29+
<icon>logo\logo_128x128.png</icon>
2930
<contentFiles>
3031
<!-- new style projects -->
3132
<files include="**/SqlDataComparison/*.*" buildAction="None" />
@@ -43,5 +44,8 @@ Supports:
4344
<file src="build\InstallMaster.sql" target="content\SqlDataComparison" />
4445
<file src="build\CleanMaster.sql" target="content\SqlDataComparison" />
4546
<file src="build\README.txt" target="content\SqlDataComparison" />
47+
48+
<!-- logo -->
49+
<file src="build\logo\logo_128x128.png" target="logo\logo_128x128.png" />
4650
</files>
4751
</package>

SqlDataComparison.proj

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22

33
<PropertyGroup>
44
<PackageId>MightyOrm.SqlDataComparison</PackageId>
5-
<Version>1.2.0</Version>
5+
<Version>1.2.1</Version>
66
<OutputPath>build\</OutputPath>
77
<SourcePath>src\</SourcePath>
88
<TestsPath>tests\</TestsPath>
9+
<TestsOutputPath>tests\</TestsOutputPath>
10+
<LogoOutputPath>logo\</LogoOutputPath>
911
<OutputInstall>Install.sql</OutputInstall>
1012
<OutputInstallMaster>InstallMaster.sql</OutputInstallMaster>
1113
<OutputCleanMaster>CleanMaster.sql</OutputCleanMaster>
1214
<OutputReadme>README.txt</OutputReadme>
13-
<OutputInstallTSQLt>$(TestsPath)InstallTSQLt.sql</OutputInstallTSQLt>
14-
<OutputInstallTests>$(TestsPath)InstallTests.sql</OutputInstallTests>
15-
<OutputUninstallTestDbs>$(TestsPath)UninstallTestDbs.sql</OutputUninstallTestDbs>
16-
<OutputCompleteReinstallWithTests>$(TestsPath)CompleteReinstallWithTests.sql</OutputCompleteReinstallWithTests>
15+
<OutputInstallTSQLt>$(TestsOutputPath)InstallTSQLt.sql</OutputInstallTSQLt>
16+
<OutputInstallTests>$(TestsOutputPath)InstallTests.sql</OutputInstallTests>
17+
<OutputUninstallTestDbs>$(TestsOutputPath)UninstallTestDbs.sql</OutputUninstallTestDbs>
18+
<OutputCompleteReinstallWithTests>$(TestsOutputPath)CompleteReinstallWithTests.sql</OutputCompleteReinstallWithTests>
19+
<OutputLogo>$(LogoOutputPath)logo_128x128.png</OutputLogo>
1720
<ContentRoot>contentFiles\any\any\</ContentRoot>
1821
<ContentFolder>SqlDataComparison</ContentFolder>
1922
<PackageOutputPath>pack</PackageOutputPath>
@@ -135,11 +138,11 @@
135138
<Message Text="Created $(OutputPath)$(OutputUninstallTestDbs)"/>
136139
</Target>
137140

138-
<Target Name="CreateCompleteReinstallWithTests" Inputs="$(OutputPath)$(OutputInstall);$(OutputPath)$(OutputInstallMaster);$(OutputPath)$(OutputInstallTSQLt);$(OutputPath)$(OutputInstallTests);" Outputs="$(OutputPath)$(TestsPath)CompleteReinstallWithTests.sql">
139-
<Exec Command="type $(OutputPath)$(OutputInstall) > $(OutputPath)$(TestsPath)CompleteReinstallWithTests.sql" />
140-
<Exec Command="type $(OutputPath)$(OutputInstallMaster) >> $(OutputPath)$(TestsPath)CompleteReinstallWithTests.sql" />
141-
<Exec Command="type $(OutputPath)$(OutputInstallTSQLt) >> $(OutputPath)$(TestsPath)CompleteReinstallWithTests.sql" />
142-
<Exec Command="type $(OutputPath)$(OutputInstallTests) >> $(OutputPath)$(TestsPath)CompleteReinstallWithTests.sql" />
141+
<Target Name="CreateCompleteReinstallWithTests" Inputs="$(OutputPath)$(OutputInstall);$(OutputPath)$(OutputInstallMaster);$(OutputPath)$(OutputInstallTSQLt);$(OutputPath)$(OutputInstallTests);" Outputs="$(OutputPath)$(OutputCompleteReinstallWithTests)">
142+
<Exec Command="type $(OutputPath)$(OutputInstall) > $(OutputPath)$(OutputCompleteReinstallWithTests)" />
143+
<Exec Command="type $(OutputPath)$(OutputInstallMaster) >> $(OutputPath)$(OutputCompleteReinstallWithTests)" />
144+
<Exec Command="type $(OutputPath)$(OutputInstallTSQLt) >> $(OutputPath)$(OutputCompleteReinstallWithTests)" />
145+
<Exec Command="type $(OutputPath)$(OutputInstallTests) >> $(OutputPath)$(OutputCompleteReinstallWithTests)" />
143146
</Target>
144147

145148
<Target Name="AddReadme" Inputs="SqlDataComparison.proj;$(SourcePath)$(LicenseFile);$(SourcePath)static\README.txt" Outputs="$(OutputPath)$(OutputReadme)">
@@ -152,10 +155,15 @@
152155
<Message Text="Created $(OutputPath)$(OutputReadme)"/>
153156
</Target>
154157

158+
<Target Name="AddLogo" Inputs="$(SourcePath)static\logo_128x128.png" Outputs="$(OutputPath)$(OutputLogo)">
159+
<!-- * is intentional; suppresses file/directory prompt -->
160+
<Exec Command="xcopy /y $(SourcePath)static\logo_128x128.png $(OutputPath)$(OutputLogo)*" />
161+
</Target>
162+
155163
<!-- Main build target -->
156-
<Target Name="Build" DependsOnTargets="ReadLicense;CreateInstall;CreateInstallMaster;CreateCleanMaster;CreateInstallTSQLt;CreateInstallTests;CreateUninstallTestDbs;CreateCompleteReinstallWithTests;AddReadme;" />
164+
<Target Name="Build" DependsOnTargets="ReadLicense;CreateInstall;CreateInstallMaster;CreateCleanMaster;CreateInstallTSQLt;CreateInstallTests;CreateUninstallTestDbs;CreateCompleteReinstallWithTests;AddReadme;AddLogo;" />
157165

158-
<Target Name="Pack" DependsOnTargets="Build" Inputs="$(OutputPath)$(OutputInstall);$(OutputPath)$(OutputInstallMaster);$(OutputPath)$(OutputCleanMaster);$(OutputPath)$(OutputReadme);" Outputs="$(PackageOutputPath)\$(PackageId).$(Version).nupkg">
166+
<Target Name="Pack" DependsOnTargets="Build" Inputs="$(OutputPath)$(OutputInstall);$(OutputPath)$(OutputInstallMaster);$(OutputPath)$(OutputCleanMaster);$(OutputPath)$(OutputReadme);$(OutputPath)$(OutputLogo);" Outputs="$(PackageOutputPath)\$(PackageId).$(Version).nupkg">
159167
<Exec Command="nuget pack -Version $(Version) -OutputDirectory $(PackageOutputPath)" />
160168
<Exec Command="7z a -tzip pack\SqlDataComparison.$(Version).zip .\build\* -x!tests*" />
161169
</Target>

src/static/logo_128x128.png

2.27 KB
Loading

src/static/logo_32x32.png

1.64 KB
Loading

0 commit comments

Comments
 (0)