Skip to content

Commit 06a8425

Browse files
author
Maksim Moisiuk
committed
Download license and icon before creating nuget package
1 parent ce1826d commit 06a8425

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ obj
99

1010
ConEmu.CommandLine/Tools/ConEmu/*
1111
*.nupkg
12+
nuget/data
1213
packages/**
1314
*.opendb

nuget/ConEmu.Control.WinForms/ConEmu.Control.WinForms.nuspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<tags>graphical console emulator tabs farmanager powershell cmd bash cygwin msys git</tags>
1010

1111
<projectUrl>https://conemu.github.io/</projectUrl>
12-
<iconUrl>https://conemu.github.io/img/logo-128.png</iconUrl>
12+
<icon>images\icon.png</icon>
1313
<releaseNotes>https://conemu.github.io/en/Whats_New.html</releaseNotes>
1414

1515
<copyright>© 2020, Maksim Moisiuk</copyright>
1616
<requireLicenseAcceptance>false</requireLicenseAcceptance>
17-
<license type="expression">BSD-3-Clause</license>
17+
<license type="file">license\license.txt</license>
1818

1919
<summary>
2020
This is a console emulator control that embeds a fully functional console view in a Windows Forms window.
@@ -32,5 +32,7 @@
3232
<files>
3333
<file src="..\..\ConEmuWinForms\bin\ConEmu.WinForms.dll" target="lib\net40" />
3434
<file src="..\..\ConEmuWinForms\bin\ConEmu.WinForms.Xml" target="lib\net40" />
35+
<file src="..\data\icon.png" target="images\icon.png" />
36+
<file src="..\data\license.txt" target="license\license.txt" />
3537
</files>
3638
</package>

nuget/build.nuget-org.cmd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ rem ??? what would be the path to Nuget.exe cmdline tool?..
1212
if exist "ConEmu.Control.WinForms.*.nupkg" del "ConEmu.Control.WinForms.*.nupkg"
1313
if exist "ConEmu.Control.WinForms\*.nupkg" del "ConEmu.Control.WinForms\*.nupkg"
1414

15+
if not exist data mkdir data
16+
if not exist data\icon.png (
17+
echo Downloading icon
18+
ConEmuC -download https://conemu.github.io/img/logo-128.png data\icon.png 2> nul
19+
if errorlevel 1 exit /b 1
20+
)
21+
if not exist data\license.txt (
22+
echo Downloading license
23+
ConEmuC -download https://github.com/Maximus5/ConEmu/raw/master/Release/ConEmu/License.txt data\license.txt 2> nul
24+
if errorlevel 1 exit /b 1
25+
)
26+
1527
cd /d ConEmu.Control.WinForms
1628
call nuget pack -Verbosity detailed -NoDefaultExcludes
1729
if errorlevel 1 (

0 commit comments

Comments
 (0)