Skip to content

Commit

Permalink
Update NuGet and build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Moisiuk committed Nov 3, 2020
1 parent 06a8425 commit 32d483f
Show file tree
Hide file tree
Showing 14 changed files with 252 additions and 97 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ obj

ConEmu.CommandLine/Tools/ConEmu/*
*.nupkg
nuget/data
packages/**
*.opendb
39 changes: 28 additions & 11 deletions ConEmuInside.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
# Visual Studio Version 16
VisualStudioVersion = 16.0.30406.217
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConEmuInside", "ConEmuInside\ConEmuInside.csproj", "{44D33E8F-7F78-417D-AA78-E42AEE2071E3}"
EndProject
Expand All @@ -11,21 +11,38 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleUtilityShowcase", "S
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ControlDllTestbed", "Tests\ControlDllTestbed\ControlDllTestbed.csproj", "{FEE30B4B-149C-4878-9C62-8ADEF4C8A6C1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{6E427565-9D1D-4D62-81B1-202DA95D7CDA}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Default|Any CPU = Default|Any CPU
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{44D33E8F-7F78-417D-AA78-E42AEE2071E3}.Default|Any CPU.ActiveCfg = Debug|Any CPU
{44D33E8F-7F78-417D-AA78-E42AEE2071E3}.Default|Any CPU.Build.0 = Debug|Any CPU
{1DC7D403-484B-43B4-B017-1356397A32CB}.Default|Any CPU.ActiveCfg = Default|Any CPU
{1DC7D403-484B-43B4-B017-1356397A32CB}.Default|Any CPU.Build.0 = Default|Any CPU
{ECD0914D-ABAE-468A-9265-10E6DFF6EB80}.Default|Any CPU.ActiveCfg = Default|Any CPU
{ECD0914D-ABAE-468A-9265-10E6DFF6EB80}.Default|Any CPU.Build.0 = Default|Any CPU
{FEE30B4B-149C-4878-9C62-8ADEF4C8A6C1}.Default|Any CPU.ActiveCfg = Default|Any CPU
{FEE30B4B-149C-4878-9C62-8ADEF4C8A6C1}.Default|Any CPU.Build.0 = Default|Any CPU
{44D33E8F-7F78-417D-AA78-E42AEE2071E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{44D33E8F-7F78-417D-AA78-E42AEE2071E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{44D33E8F-7F78-417D-AA78-E42AEE2071E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{44D33E8F-7F78-417D-AA78-E42AEE2071E3}.Release|Any CPU.Build.0 = Release|Any CPU
{1DC7D403-484B-43B4-B017-1356397A32CB}.Debug|Any CPU.ActiveCfg = Default|Any CPU
{1DC7D403-484B-43B4-B017-1356397A32CB}.Debug|Any CPU.Build.0 = Default|Any CPU
{1DC7D403-484B-43B4-B017-1356397A32CB}.Release|Any CPU.ActiveCfg = Default|Any CPU
{1DC7D403-484B-43B4-B017-1356397A32CB}.Release|Any CPU.Build.0 = Default|Any CPU
{ECD0914D-ABAE-468A-9265-10E6DFF6EB80}.Debug|Any CPU.ActiveCfg = Default|Any CPU
{ECD0914D-ABAE-468A-9265-10E6DFF6EB80}.Debug|Any CPU.Build.0 = Default|Any CPU
{ECD0914D-ABAE-468A-9265-10E6DFF6EB80}.Release|Any CPU.ActiveCfg = Default|Any CPU
{ECD0914D-ABAE-468A-9265-10E6DFF6EB80}.Release|Any CPU.Build.0 = Default|Any CPU
{FEE30B4B-149C-4878-9C62-8ADEF4C8A6C1}.Debug|Any CPU.ActiveCfg = Default|Any CPU
{FEE30B4B-149C-4878-9C62-8ADEF4C8A6C1}.Debug|Any CPU.Build.0 = Default|Any CPU
{FEE30B4B-149C-4878-9C62-8ADEF4C8A6C1}.Release|Any CPU.ActiveCfg = Default|Any CPU
{FEE30B4B-149C-4878-9C62-8ADEF4C8A6C1}.Release|Any CPU.Build.0 = Default|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {276FC0EF-9EF3-44A9-8FDF-B195E76EA89C}
EndGlobalSection
EndGlobal
4 changes: 3 additions & 1 deletion ConEmuInside.sln.DotSettings
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateInstanceFields/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PublicFields/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /&gt;</s:String>
<s:Boolean x:Key="/Default/UserDictionary/Words/=conemu/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
<s:Boolean x:Key="/Default/UserDictionary/Words/=conemu/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=hypersw/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/UserDictionary/Words/=Maximus/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
4 changes: 2 additions & 2 deletions ConEmuInside/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.2.0.0")]
[assembly: AssemblyFileVersion("0.2.0.0")]
[assembly: AssemblyVersion("0.3.0.0")]
[assembly: AssemblyFileVersion("0.3.0.0")]
4 changes: 2 additions & 2 deletions ConEmuWinForms/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

// These versions must remain 1.0 as soon as API is considered compatible, this will allow the compiled code to be compatible with minor updates
// Do not use the nuget version here
[assembly : AssemblyVersion("20.10.11.0")]
[assembly : AssemblyFileVersion("20.10.11.0")]
[assembly : AssemblyVersion("1.20.10.11")]
[assembly : AssemblyFileVersion("1.20.10.11")]
7 changes: 7 additions & 0 deletions ConEmuWinForms/ConEmuWinForms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@
</ItemGroup>
<ItemGroup>
<Content Include="ConEmu.xml" />
<Content Include="package\icon.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="package\license.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="Package.nuspec">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand All @@ -87,6 +93,7 @@
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\ConEmu.Core.20.10.11\build\ConEmu.Core.Targets" Condition="Exists('..\packages\ConEmu.Core.20.10.11\build\ConEmu.Core.Targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand Down
58 changes: 38 additions & 20 deletions ConEmuWinForms/Package.nuspec
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>ConEmu.Control.WinForms</id>
<version>1.0.20160518.0</version> <!-- 1.0, because Nuget only upgrades automatically with the same first components, so probably shan't keep the date in them. -->
<title>ConEmu Console Emulator — Windows Forms Control Embedding</title>
<authors>Maximus5,hypersw</authors>
<owners>Maximus5,hypersw</owners>
<projectUrl>http://conemu.github.io/</projectUrl>
<iconUrl>http://conemu.github.io/img/logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary>This is a console emulator control that embeds a fully functional console view in a Windows Forms window.</summary>
<description>This is a console emulator control that embeds a fully functional console view in a Windows Forms window. It is capable of running any console application with full interactivity and advanced console functions. Applications will detect it as an actual console and will not fall back to the output redirection mode with reduced interactivity or formatting.</description>
<licenseUrl>https://opensource.org/licenses/BSD-3-Clause</licenseUrl>
<dependencies>
<dependency id="ConEmu.Core" version="[16.03.10,)" />
</dependencies>
</metadata>
<files>
<file src="ConEmu.WinForms.dll" target="lib/net40"/>
<file src="ConEmu.WinForms.Xml" target="lib/net40"/>
</files>
<metadata>
<id>ConEmu.Control.WinForms</id>
<!-- 1.0, because Nuget only upgrades automatically with the same first components, so probably shan't keep the date in them. -->
<version>1.20.10.11</version>
<title>ConEmu Console Emulator — Windows Forms Control Embedding</title>
<authors>Maximus5,hypersw</authors>
<owners>Maximus5,hypersw</owners>

<projectUrl>https://conemu.github.io/</projectUrl>
<icon>images\icon.png</icon>
<releaseNotes>https://conemu.github.io/en/Whats_New.html</releaseNotes>

<copyright>© 2020, Maksim Moisiuk</copyright>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="file">license\license.txt</license>

<summary>
This is a console emulator control that embeds a fully functional console view in a Windows Forms window.
</summary>
<description>
This is a console emulator control that embeds a fully functional console view in a Windows Forms window.
It is capable of running any console application with full interactivity and advanced console functions.
Applications will detect it as an actual console and will not fall back to the output redirection mode with
reduced interactivity or formatting.
</description>

<dependencies>
<group targetFramework=".NETFramework4.0">
<dependency id="ConEmu.Core" version="[20.10.11,)" />
</group>
</dependencies>
</metadata>
<files>
<file src="ConEmu.WinForms.dll" target="lib/net40"/>
<file src="ConEmu.WinForms.Xml" target="lib/net40"/>
<file src="package\icon.png" target="images\icon.png" />
<file src="package\license.txt" target="license\license.txt" />
</files>
</package>
Binary file added ConEmuWinForms/package/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
133 changes: 133 additions & 0 deletions ConEmuWinForms/package/license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
ConEmu-Maximus5 - Handy Windows terminal
Copyright (c) 2006-2008, Zoin <[email protected]>
Copyright (c) 2009-2020, Maksim Moisiuk <[email protected]>

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The name of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-------------------------------------------------------------------------------
MinHook - The Minimalistic API Hooking Library for x64/x86
Copyright (C) 2009-2015 Tsuda Kageyu.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-------------------------------------------------------------------------------
Hacker Disassembler Engine 32 C
Copyright (c) 2008-2009, Vyacheslav Patkov.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-------------------------------------------------------------------------------
Hacker Disassembler Engine 64 C
Copyright (c) 2008-2009, Vyacheslav Patkov.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-------------------------------------------------------------------------------
json-parser
Copyright (C) 2012, 2013 James McLaughlin et al. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Solution `ConEmuInside.sln` contains several projects.

## License (BSD 3-clause)

Copyright (c) 2015, Maximus5 <[email protected]>
Copyright (c) 2020, Maksim Moisiuk <[email protected]>

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
Expand Down
3 changes: 3 additions & 0 deletions nuget/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sign.cmd
*.nupkg
*.7z
38 changes: 0 additions & 38 deletions nuget/ConEmu.Control.WinForms/ConEmu.Control.WinForms.nuspec

This file was deleted.

18 changes: 18 additions & 0 deletions nuget/build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@echo off
setlocal

call "%ConEmuDrive%\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64
if errorlevel 1 exit /b 1

cd /d "%~dp0.."
msbuild ConEmuInside.sln -t:Rebuild -p:"Configuration=Release";"Platform=Any CPU"
if errorlevel 1 exit /b 1

cd /d "%~dp0..\ConEmuInside\bin\Release"

if not exist "%~dp0sign.cmd" (
echo sign.cmd not found, skipping
goto skip_sign
)
call "%~dp0sign.cmd" ConEmu.WinForms.dll ConEmuInside.exe
:skip_sign
Loading

0 comments on commit 32d483f

Please sign in to comment.