Skip to content

Commit

Permalink
PortProxyGUI.1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zmjack committed Jun 13, 2024
1 parent eb0d604 commit ffeffca
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 28 deletions.
5 changes: 1 addition & 4 deletions PortProxyGUI/About.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using PortProxyGUI.Utils;
using System;
using System;
using System.Diagnostics;
using System.Windows.Forms;

Expand All @@ -14,8 +13,6 @@ public About(PortProxyGUI portProxyGUI)
PortProxyGUI = portProxyGUI;

InitializeComponent();
Font = InterfaceUtil.UiFont;

label_version.Text = label_version.Text + " v" + Application.ProductVersion;
}

Expand Down
5 changes: 5 additions & 0 deletions PortProxyGUI/Data/Rule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ public string RealConnectPort
set => _realConnectPort = value;
}

public override int GetHashCode()
{
return base.GetHashCode();
}

public bool Equals(Rule other)
{
return Id == other.Id
Expand Down
2 changes: 0 additions & 2 deletions PortProxyGUI/PortProxyGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ public partial class PortProxyGUI : Form
public PortProxyGUI()
{
InitializeComponent();
Font = InterfaceUtil.UiFont;

listViewProxies.ListViewItemSorter = lvwColumnSorter;
}

Expand Down
6 changes: 3 additions & 3 deletions PortProxyGUI/PortProxyGUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFrameworks>net6.0-windows;net35;net451</TargetFrameworks>
<TargetFrameworks>net8.0-windows;net6.0-windows;net35;net451</TargetFrameworks>
<UseWindowsForms>true</UseWindowsForms>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Authors>zmjack</Authors>
Expand All @@ -14,9 +14,9 @@
<PackageTags>portproxy TCP/IP redirector</PackageTags>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<Copyright>Copyright © nstandard.net 2020</Copyright>
<Version>1.4.1</Version>
<Version>1.4.2</Version>
<ApplicationIcon>icon.ico</ApplicationIcon>
<ApplicationDefaultFont>Microsoft Sans Serif, 8pt</ApplicationDefaultFont>
<ApplicationDefaultFont>Arial, 8.25pt</ApplicationDefaultFont>
<AssemblyName>PPGUI</AssemblyName>
<LangVersion>preview</LangVersion>
</PropertyGroup>
Expand Down
4 changes: 3 additions & 1 deletion PortProxyGUI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,18 @@ static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.

#if NET6_0_OR_GREATER
ApplicationConfiguration.Initialize();
#elif NETCOREAPP3_1_OR_GREATER
#elif NETCOREAPP3_1_OR_GREATER
Application.SetHighDpiMode(HighDpiMode.SystemAware);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
#else
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
#endif

Application.Run(new PortProxyGUI());
}
}
Expand Down
1 change: 0 additions & 1 deletion PortProxyGUI/SetProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public SetProxy(PortProxyGUI parent)
ParentWindow = parent;

InitializeComponent();
Font = InterfaceUtil.UiFont;

AutoTypeString = comboBox_Type.Text = comboBox_Type.Items.OfType<string>().First();
var groupNames = (
Expand Down
15 changes: 0 additions & 15 deletions PortProxyGUI/Utils/InterfaceUtil.cs

This file was deleted.

21 changes: 21 additions & 0 deletions PortProxyGUI/publish.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Remove-Item -Path ".\bin\publish" -Recurse

dotnet publish -c Release -f "net8.0-windows" /p:PublishProfile="net8-x64"
dotnet publish -c Release -f "net8.0-windows" /p:PublishProfile="net8-x86"

dotnet publish -c Release -f "net6.0-windows" /p:PublishProfile="net6-x64"
dotnet publish -c Release -f "net6.0-windows" /p:PublishProfile="net6-x86"

Copy-Item -Path ".\bin\Release\net451\" ".\bin\Publish\" -Recurse -Force
Copy-Item -Path ".\bin\Release\net35\" ".\bin\Publish\" -Recurse -Force

$ver = "1.4.2"

Compress-Archive -Path ".\bin\publish\net8-x64\*" -DestinationPath ".\bin\publish\ppgui-net8-x64-$ver.zip" -Force
Compress-Archive -Path ".\bin\publish\net8-x86\*" -DestinationPath ".\bin\publish\ppgui-net8-x86-$ver.zip" -Force

Compress-Archive -Path ".\bin\publish\net6-x64\*" -DestinationPath ".\bin\publish\ppgui-net6-x64-$ver.zip" -Force
Compress-Archive -Path ".\bin\publish\net6-x86\*" -DestinationPath ".\bin\publish\ppgui-net6-x86-$ver.zip" -Force

Compress-Archive -Path ".\bin\publish\net451\*" -DestinationPath ".\bin\publish\ppgui-net451-$ver.zip" -Force
Compress-Archive -Path ".\bin\publish\net35\*" -DestinationPath ".\bin\publish\ppgui-net35-$ver.zip" -Force
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ A manager for netsh interface portproxy, which is to evaluate TCP/IP port redire

## Upgrade

- **v1.4.2**
- Change the default font from ~~`Microsoft Sans Serif`~~ to **`Arial`**.
- This setting provides better compatibility on operating systems with fewer fonts.
- **v1.4.1**
- Added a status strip at the bottom of the window.
- Added a check of the IP Helper service status, if the service is not running, a prompt will be displayed on the bottom status bar.
- Add a status strip at the bottom of the window.
- Add a check of the IP Helper service status, if the service is not running, a prompt will be displayed on the bottom status bar.
- **v1.4.0**
- Command line calls have been removed to provide better performance.
- New Feature Added: **Remember Window/Column Size**.
Expand Down

0 comments on commit ffeffca

Please sign in to comment.