diff --git a/README.md b/README.md index f29a6b53..ab790e7e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,6 @@ PM> Install-Package CefSharp.WinForms -Version 57.0.0 PM> Install-Package Microsoft.VC120.CRT.JetBrains ``` -After building, run either `_postbuild.bat` if you want to package the files yourself, or `bld/RUN BUILD.bat` to generate installer files using Inno Setup (make sure the Inno Setup binaries are on your PATH). +When building the `Release` configuration, the folder will only contain files intended for distribution (no debug symbols or other unnecessary files). You may package the files yourself, or use `bld/RUN BUILD.bat` to generate installer files using Inno Setup (make sure the Inno Setup binaries are on your PATH). -Built files are then available in **bin/x86**, installer files are generated in **bld/Output**. If you decide to release a custom version publicly, please make it clear that it is not the original TweetDuck. +Built files are available in **bin/x86**, installer files are generated in **bld/Output**. If you decide to release a custom version publicly, please make it clear that it is not the original TweetDuck. diff --git a/TweetDuck.csproj b/TweetDuck.csproj index 1f707782..25425106 100644 --- a/TweetDuck.csproj +++ b/TweetDuck.csproj @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props" Condition="Exists('packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props')" /> <Import Project="packages\CefSharp.Common.57.0.0\build\CefSharp.Common.props" Condition="Exists('packages\CefSharp.Common.57.0.0\build\CefSharp.Common.props')" /> @@ -352,8 +352,7 @@ </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <PropertyGroup> - <PostBuildEvent>del "$(TargetPath).config" -xcopy "$(ProjectDir)LICENSE.md" "$(TargetDir)" /Y + <PostBuildEvent>xcopy "$(ProjectDir)LICENSE.md" "$(TargetDir)" /Y del "$(TargetDir)LICENSE.txt" ren "$(TargetDir)LICENSE.md" "LICENSE.txt" xcopy "$(ProjectDir)bld\Resources\CEFSHARP-LICENSE.txt" "$(TargetDir)" /Y @@ -378,7 +377,6 @@ if $(ConfigurationName) == Debug ( xcopy "$(ProjectDir)Resources\Plugins\.debug\*" "$(TargetDir)plugins\user\.debug\" /E /Y )</PostBuildEvent> </PropertyGroup> - <Import Project="packages\cef.redist.x64.3.2987.1601\build\cef.redist.x64.targets" Condition="Exists('packages\cef.redist.x64.3.2987.1601\build\cef.redist.x64.targets')" /> <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> <PropertyGroup> <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> @@ -390,14 +388,15 @@ if $(ConfigurationName) == Debug ( <Error Condition="!Exists('packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.props'))" /> <Error Condition="!Exists('packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.targets'))" /> </Target> + <Import Project="packages\cef.redist.x64.3.2987.1601\build\cef.redist.x64.targets" Condition="Exists('packages\cef.redist.x64.3.2987.1601\build\cef.redist.x64.targets')" /> <Import Project="packages\cef.redist.x86.3.2987.1601\build\cef.redist.x86.targets" Condition="Exists('packages\cef.redist.x86.3.2987.1601\build\cef.redist.x86.targets')" /> <Import Project="packages\CefSharp.Common.57.0.0\build\CefSharp.Common.targets" Condition="Exists('packages\CefSharp.Common.57.0.0\build\CefSharp.Common.targets')" /> <Import Project="packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.targets" Condition="Exists('packages\CefSharp.WinForms.57.0.0\build\CefSharp.WinForms.targets')" /> - <!-- To modify your build process, add your task inside one of the targets below and uncomment it. - Other similar extension points exist, see Microsoft.Common.targets. - <Target Name="BeforeBuild"> + <Target Name="AfterBuild" Condition="$(ConfigurationName) == Release"> + <Exec Command='del "$(TargetDir)*.pdb"' /> + <Exec Command='del "$(TargetDir)*.xml"' /> + <Delete Files="$(TargetDir)CefSharp.BrowserSubprocess.exe" /> + <Delete Files="$(TargetDir)devtools_resources.pak" /> + <Delete Files="$(TargetDir)widevinecdmadapter.dll" /> </Target> - <Target Name="AfterBuild"> - </Target> - --> </Project> \ No newline at end of file diff --git a/TweetDuck.sln b/TweetDuck.sln index 7d5a2d34..0c4470d1 100644 --- a/TweetDuck.sln +++ b/TweetDuck.sln @@ -1,6 +1,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26430.12 +VisualStudioVersion = 15.0.26430.16 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TweetDuck", "TweetDuck.csproj", "{2389A7CD-E0D3-4706-8294-092929A33A2D}" EndProject diff --git a/_postbuild.bat b/_postbuild.bat deleted file mode 100644 index 0652dfa7..00000000 --- a/_postbuild.bat +++ /dev/null @@ -1,6 +0,0 @@ -del "bin\x86\Release\*.xml" -del "bin\x86\Release\*.pdb" -del "bin\x86\Release\CefSharp.BrowserSubprocess.exe" -del "bin\x86\Release\devtools_resources.pak" -del "bin\x86\Release\d3dcompiler_43.dll" -del "bin\x86\Release\widevinecdmadapter.dll"