Skip to content

Commit 263be5e

Browse files
committed
CleanUp and create zip after release build
1 parent ef55bd0 commit 263be5e

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

MainForm.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,13 @@
88
using System.Text;
99
using System.Threading.Tasks;
1010
using System.Windows.Forms;
11-
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
1211

1312
namespace RishWinTools
1413
{
1514
public partial class MainForm : Form
1615
{
1716
private TabControl Tabs;
18-
private Panel Footer;
19-
private readonly System.ComponentModel.IContainer? Components;
20-
21-
protected override void Dispose(bool disposing)
22-
{
23-
if (disposing && (Components != null))
24-
{
25-
Components.Dispose();
26-
}
27-
base.Dispose(disposing);
28-
}
17+
private Panel Footer;
2918

3019
public MainForm()
3120
{

RishWinTools.csproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
<Product>RishWinTools</Product>
1111
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
1212
<ApplicationIcon>icon.ico</ApplicationIcon>
13+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
14+
<PackageName>RishWinTools_v$(Version)</PackageName>
1315
</PropertyGroup>
1416
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
15-
<OutputPath>bin\Release\$(Version)\</OutputPath>
17+
<OutputPath>bin\Release\$(PackageName)\RishWinTools\</OutputPath>
1618
</PropertyGroup>
1719
<ItemGroup>
1820
<Content Include="icon.ico">
@@ -24,4 +26,10 @@
2426
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
2527
</None>
2628
</ItemGroup>
29+
<Target Name="PackageRelease" BeforeTargets="AfterBuild" Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
30+
<ZipDirectory
31+
SourceDirectory="bin\Release\$(PackageName)"
32+
DestinationFile="bin\Release\$(PackageName).zip"
33+
Overwrite="true"/>
34+
</Target>
2735
</Project>

0 commit comments

Comments
 (0)