Skip to content

Commit

Permalink
Add internal icon to .nupkg, add logo to README.md, slightly improve …
Browse files Browse the repository at this point in the history
….nupkg description
  • Loading branch information
mikebeaton committed Apr 16, 2020
1 parent c60b6ac commit 10218d7
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SqlDataComparison
# ![logo](https://raw.githubusercontent.com/MightyOrm/SqlDataComparison/master/src/static/logo_32x32.png) SqlDataComparison

## Installation:

Expand Down
6 changes: 5 additions & 1 deletion SqlDataComparison.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Example usage:
* EXEC sp_CompareData 'MyTable', 'RemoteDb..TheirTable'
* EXEC sp_ExportAll 'MyTable', 'RemoteDb..TheirTable'
* EXEC sp_ExportDeleted 'MyTable', 'RemoteDb..TheirTable'
* EXEC sp_ExportDeleted 'MyTable', 'RemoteDb..TheirTable', @ids = '43-44'
* EXEC sp_ImportChanged 'MyTable', 'RemoteDb..TheirTable', @ids = '43-44'

Supports:

Expand All @@ -26,6 +26,7 @@ Supports:
<copyright>Copyright (c) 2020 Mike Beaton</copyright>
<projectUrl>https://github.com/MightyOrm/SqlDataComparison</projectUrl>
<license type="expression">MIT</license>
<icon>logo\logo_128x128.png</icon>
<contentFiles>
<!-- new style projects -->
<files include="**/SqlDataComparison/*.*" buildAction="None" />
Expand All @@ -43,5 +44,8 @@ Supports:
<file src="build\InstallMaster.sql" target="content\SqlDataComparison" />
<file src="build\CleanMaster.sql" target="content\SqlDataComparison" />
<file src="build\README.txt" target="content\SqlDataComparison" />

<!-- logo -->
<file src="build\logo\logo_128x128.png" target="logo\logo_128x128.png" />
</files>
</package>
32 changes: 20 additions & 12 deletions SqlDataComparison.proj
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@

<PropertyGroup>
<PackageId>MightyOrm.SqlDataComparison</PackageId>
<Version>1.2.0</Version>
<Version>1.2.1</Version>
<OutputPath>build\</OutputPath>
<SourcePath>src\</SourcePath>
<TestsPath>tests\</TestsPath>
<TestsOutputPath>tests\</TestsOutputPath>
<LogoOutputPath>logo\</LogoOutputPath>
<OutputInstall>Install.sql</OutputInstall>
<OutputInstallMaster>InstallMaster.sql</OutputInstallMaster>
<OutputCleanMaster>CleanMaster.sql</OutputCleanMaster>
<OutputReadme>README.txt</OutputReadme>
<OutputInstallTSQLt>$(TestsPath)InstallTSQLt.sql</OutputInstallTSQLt>
<OutputInstallTests>$(TestsPath)InstallTests.sql</OutputInstallTests>
<OutputUninstallTestDbs>$(TestsPath)UninstallTestDbs.sql</OutputUninstallTestDbs>
<OutputCompleteReinstallWithTests>$(TestsPath)CompleteReinstallWithTests.sql</OutputCompleteReinstallWithTests>
<OutputInstallTSQLt>$(TestsOutputPath)InstallTSQLt.sql</OutputInstallTSQLt>
<OutputInstallTests>$(TestsOutputPath)InstallTests.sql</OutputInstallTests>
<OutputUninstallTestDbs>$(TestsOutputPath)UninstallTestDbs.sql</OutputUninstallTestDbs>
<OutputCompleteReinstallWithTests>$(TestsOutputPath)CompleteReinstallWithTests.sql</OutputCompleteReinstallWithTests>
<OutputLogo>$(LogoOutputPath)logo_128x128.png</OutputLogo>
<ContentRoot>contentFiles\any\any\</ContentRoot>
<ContentFolder>SqlDataComparison</ContentFolder>
<PackageOutputPath>pack</PackageOutputPath>
Expand Down Expand Up @@ -135,11 +138,11 @@
<Message Text="Created $(OutputPath)$(OutputUninstallTestDbs)"/>
</Target>

<Target Name="CreateCompleteReinstallWithTests" Inputs="$(OutputPath)$(OutputInstall);$(OutputPath)$(OutputInstallMaster);$(OutputPath)$(OutputInstallTSQLt);$(OutputPath)$(OutputInstallTests);" Outputs="$(OutputPath)$(TestsPath)CompleteReinstallWithTests.sql">
<Exec Command="type $(OutputPath)$(OutputInstall) > $(OutputPath)$(TestsPath)CompleteReinstallWithTests.sql" />
<Exec Command="type $(OutputPath)$(OutputInstallMaster) >> $(OutputPath)$(TestsPath)CompleteReinstallWithTests.sql" />
<Exec Command="type $(OutputPath)$(OutputInstallTSQLt) >> $(OutputPath)$(TestsPath)CompleteReinstallWithTests.sql" />
<Exec Command="type $(OutputPath)$(OutputInstallTests) >> $(OutputPath)$(TestsPath)CompleteReinstallWithTests.sql" />
<Target Name="CreateCompleteReinstallWithTests" Inputs="$(OutputPath)$(OutputInstall);$(OutputPath)$(OutputInstallMaster);$(OutputPath)$(OutputInstallTSQLt);$(OutputPath)$(OutputInstallTests);" Outputs="$(OutputPath)$(OutputCompleteReinstallWithTests)">
<Exec Command="type $(OutputPath)$(OutputInstall) > $(OutputPath)$(OutputCompleteReinstallWithTests)" />
<Exec Command="type $(OutputPath)$(OutputInstallMaster) >> $(OutputPath)$(OutputCompleteReinstallWithTests)" />
<Exec Command="type $(OutputPath)$(OutputInstallTSQLt) >> $(OutputPath)$(OutputCompleteReinstallWithTests)" />
<Exec Command="type $(OutputPath)$(OutputInstallTests) >> $(OutputPath)$(OutputCompleteReinstallWithTests)" />
</Target>

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

<Target Name="AddLogo" Inputs="$(SourcePath)static\logo_128x128.png" Outputs="$(OutputPath)$(OutputLogo)">
<!-- * is intentional; suppresses file/directory prompt -->
<Exec Command="xcopy /y $(SourcePath)static\logo_128x128.png $(OutputPath)$(OutputLogo)*" />
</Target>

<!-- Main build target -->
<Target Name="Build" DependsOnTargets="ReadLicense;CreateInstall;CreateInstallMaster;CreateCleanMaster;CreateInstallTSQLt;CreateInstallTests;CreateUninstallTestDbs;CreateCompleteReinstallWithTests;AddReadme;" />
<Target Name="Build" DependsOnTargets="ReadLicense;CreateInstall;CreateInstallMaster;CreateCleanMaster;CreateInstallTSQLt;CreateInstallTests;CreateUninstallTestDbs;CreateCompleteReinstallWithTests;AddReadme;AddLogo;" />

<Target Name="Pack" DependsOnTargets="Build" Inputs="$(OutputPath)$(OutputInstall);$(OutputPath)$(OutputInstallMaster);$(OutputPath)$(OutputCleanMaster);$(OutputPath)$(OutputReadme);" Outputs="$(PackageOutputPath)\$(PackageId).$(Version).nupkg">
<Target Name="Pack" DependsOnTargets="Build" Inputs="$(OutputPath)$(OutputInstall);$(OutputPath)$(OutputInstallMaster);$(OutputPath)$(OutputCleanMaster);$(OutputPath)$(OutputReadme);$(OutputPath)$(OutputLogo);" Outputs="$(PackageOutputPath)\$(PackageId).$(Version).nupkg">
<Exec Command="nuget pack -Version $(Version) -OutputDirectory $(PackageOutputPath)" />
<Exec Command="7z a -tzip pack\SqlDataComparison.$(Version).zip .\build\* -x!tests*" />
</Target>
Expand Down
Binary file added src/static/logo_128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/static/logo_32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 10218d7

Please sign in to comment.