From 57ebb57335c2c151198b5b610698d0e4689d455e Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 31 Jul 2016 12:18:24 +0100 Subject: [PATCH] Separate SpritePacker from CLI --- {SpritePacker => SpritePacker-CLI}/Program.cs | 2 - SpritePacker-CLI/Properties/AssemblyInfo.cs | 27 +++++++++ .../Resources/HelpText.txt | 0 .../Resources/VersionText.txt | 0 SpritePacker-CLI/SpritePacker-CLI.csproj | 59 +++++++++++++++++++ .../Version.txt | 0 SpritePacker.sln | 8 ++- SpritePacker/Properties/AssemblyInfo.cs | 2 +- SpritePacker/SpritePacker.csproj | 34 +++-------- 9 files changed, 103 insertions(+), 29 deletions(-) rename {SpritePacker => SpritePacker-CLI}/Program.cs (98%) create mode 100644 SpritePacker-CLI/Properties/AssemblyInfo.cs rename {SpritePacker => SpritePacker-CLI}/Resources/HelpText.txt (100%) rename {SpritePacker => SpritePacker-CLI}/Resources/VersionText.txt (100%) create mode 100644 SpritePacker-CLI/SpritePacker-CLI.csproj rename {SpritePacker => SpritePacker-CLI}/Version.txt (100%) diff --git a/SpritePacker/Program.cs b/SpritePacker-CLI/Program.cs similarity index 98% rename from SpritePacker/Program.cs rename to SpritePacker-CLI/Program.cs index dacc55b..a7d6f70 100644 --- a/SpritePacker/Program.cs +++ b/SpritePacker-CLI/Program.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; -using System.Windows.Markup; using System.IO; -using System.Reflection; namespace SpritePacker { diff --git a/SpritePacker-CLI/Properties/AssemblyInfo.cs b/SpritePacker-CLI/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..ec5fae7 --- /dev/null +++ b/SpritePacker-CLI/Properties/AssemblyInfo.cs @@ -0,0 +1,27 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("SpritePacker")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("Starbeamrainbowlabs")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("0.1.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] + diff --git a/SpritePacker/Resources/HelpText.txt b/SpritePacker-CLI/Resources/HelpText.txt similarity index 100% rename from SpritePacker/Resources/HelpText.txt rename to SpritePacker-CLI/Resources/HelpText.txt diff --git a/SpritePacker/Resources/VersionText.txt b/SpritePacker-CLI/Resources/VersionText.txt similarity index 100% rename from SpritePacker/Resources/VersionText.txt rename to SpritePacker-CLI/Resources/VersionText.txt diff --git a/SpritePacker-CLI/SpritePacker-CLI.csproj b/SpritePacker-CLI/SpritePacker-CLI.csproj new file mode 100644 index 0000000..cd547b7 --- /dev/null +++ b/SpritePacker-CLI/SpritePacker-CLI.csproj @@ -0,0 +1,59 @@ + + + + Debug + x86 + {6EF47B64-1920-4827-BEEF-B262D5A2D214} + Exe + SpritePacker + SpritePacker + v4.5 + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + true + x86 + result.png /tmp/*.png + + + full + true + bin\Release + prompt + 4 + true + x86 + + + git rev-parse HEAD >../../latest-commit-hash.txt + + + + + + + + + + + + + + + + + + + + + {2D3C4FAA-6D9C-4644-ABC0-361550A1884A} + SpritePacker + + + diff --git a/SpritePacker/Version.txt b/SpritePacker-CLI/Version.txt similarity index 100% rename from SpritePacker/Version.txt rename to SpritePacker-CLI/Version.txt diff --git a/SpritePacker.sln b/SpritePacker.sln index d0803a3..1bd93ee 100644 --- a/SpritePacker.sln +++ b/SpritePacker.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpritePacker", "SpritePacker\SpritePacker.csproj", "{6EF47B64-1920-4827-BEEF-B262D5A2D214}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpritePacker-CLI", "SpritePacker-CLI\SpritePacker-CLI.csproj", "{6EF47B64-1920-4827-BEEF-B262D5A2D214}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5C9D36DD-3962-45BF-938E-BE1E258053EC}" ProjectSection(SolutionItems) = preProject @@ -9,12 +9,18 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution .gitignore = .gitignore EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpritePacker", "SpritePacker\SpritePacker.csproj", "{2D3C4FAA-6D9C-4644-ABC0-361550A1884A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x86 = Debug|x86 Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {2D3C4FAA-6D9C-4644-ABC0-361550A1884A}.Debug|x86.ActiveCfg = Debug|Any CPU + {2D3C4FAA-6D9C-4644-ABC0-361550A1884A}.Debug|x86.Build.0 = Debug|Any CPU + {2D3C4FAA-6D9C-4644-ABC0-361550A1884A}.Release|x86.ActiveCfg = Release|Any CPU + {2D3C4FAA-6D9C-4644-ABC0-361550A1884A}.Release|x86.Build.0 = Release|Any CPU {6EF47B64-1920-4827-BEEF-B262D5A2D214}.Debug|x86.ActiveCfg = Debug|x86 {6EF47B64-1920-4827-BEEF-B262D5A2D214}.Debug|x86.Build.0 = Debug|x86 {6EF47B64-1920-4827-BEEF-B262D5A2D214}.Release|x86.ActiveCfg = Release|x86 diff --git a/SpritePacker/Properties/AssemblyInfo.cs b/SpritePacker/Properties/AssemblyInfo.cs index ec5fae7..06b7662 100644 --- a/SpritePacker/Properties/AssemblyInfo.cs +++ b/SpritePacker/Properties/AssemblyInfo.cs @@ -17,7 +17,7 @@ using System.Runtime.CompilerServices; // The form "{Major}.{Minor}.*" will automatically update the build and revision, // and "{Major}.{Minor}.{Build}.*" will update just the revision. -[assembly: AssemblyVersion("0.1.*")] +[assembly: AssemblyVersion("1.0.*")] // The following attributes are used to specify the signing key for the assembly, // if desired. See the Mono documentation for more information about signing. diff --git a/SpritePacker/SpritePacker.csproj b/SpritePacker/SpritePacker.csproj index e3cbe55..3a29a08 100644 --- a/SpritePacker/SpritePacker.csproj +++ b/SpritePacker/SpritePacker.csproj @@ -2,14 +2,14 @@ Debug - x86 - {6EF47B64-1920-4827-BEEF-B262D5A2D214} - Exe + AnyCPU + {2D3C4FAA-6D9C-4644-ABC0-361550A1884A} + Library SpritePacker SpritePacker v4.5 - + true full false @@ -17,41 +17,25 @@ DEBUG; prompt 4 - true - x86 - result.png /tmp/*.png + false - + full true bin\Release prompt 4 - true - x86 - - - git rev-parse HEAD >../../latest-commit-hash.txt + false - - + - - - - - - - - - - + \ No newline at end of file