Skip to content

Commit ffeffca

Browse files
committed
PortProxyGUI.1.4.2
1 parent eb0d604 commit ffeffca

File tree

9 files changed

+38
-28
lines changed

9 files changed

+38
-28
lines changed

PortProxyGUI/About.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using PortProxyGUI.Utils;
2-
using System;
1+
using System;
32
using System.Diagnostics;
43
using System.Windows.Forms;
54

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

1615
InitializeComponent();
17-
Font = InterfaceUtil.UiFont;
18-
1916
label_version.Text = label_version.Text + " v" + Application.ProductVersion;
2017
}
2118

PortProxyGUI/Data/Rule.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public string RealConnectPort
3636
set => _realConnectPort = value;
3737
}
3838

39+
public override int GetHashCode()
40+
{
41+
return base.GetHashCode();
42+
}
43+
3944
public bool Equals(Rule other)
4045
{
4146
return Id == other.Id

PortProxyGUI/PortProxyGUI.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ public partial class PortProxyGUI : Form
2222
public PortProxyGUI()
2323
{
2424
InitializeComponent();
25-
Font = InterfaceUtil.UiFont;
26-
2725
listViewProxies.ListViewItemSorter = lvwColumnSorter;
2826
}
2927

PortProxyGUI/PortProxyGUI.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFrameworks>net6.0-windows;net35;net451</TargetFrameworks>
5+
<TargetFrameworks>net8.0-windows;net6.0-windows;net35;net451</TargetFrameworks>
66
<UseWindowsForms>true</UseWindowsForms>
77
<ApplicationManifest>app.manifest</ApplicationManifest>
88
<Authors>zmjack</Authors>
@@ -14,9 +14,9 @@
1414
<PackageTags>portproxy TCP/IP redirector</PackageTags>
1515
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
1616
<Copyright>Copyright © nstandard.net 2020</Copyright>
17-
<Version>1.4.1</Version>
17+
<Version>1.4.2</Version>
1818
<ApplicationIcon>icon.ico</ApplicationIcon>
19-
<ApplicationDefaultFont>Microsoft Sans Serif, 8pt</ApplicationDefaultFont>
19+
<ApplicationDefaultFont>Arial, 8.25pt</ApplicationDefaultFont>
2020
<AssemblyName>PPGUI</AssemblyName>
2121
<LangVersion>preview</LangVersion>
2222
</PropertyGroup>

PortProxyGUI/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,18 @@ static void Main()
2323
{
2424
// To customize application configuration such as set high DPI settings or default font,
2525
// see https://aka.ms/applicationconfiguration.
26+
2627
#if NET6_0_OR_GREATER
2728
ApplicationConfiguration.Initialize();
28-
#elif NETCOREAPP3_1_OR_GREATER
29+
#elif NETCOREAPP3_1_OR_GREATER
2930
Application.SetHighDpiMode(HighDpiMode.SystemAware);
3031
Application.EnableVisualStyles();
3132
Application.SetCompatibleTextRenderingDefault(false);
3233
#else
3334
Application.EnableVisualStyles();
3435
Application.SetCompatibleTextRenderingDefault(false);
3536
#endif
37+
3638
Application.Run(new PortProxyGUI());
3739
}
3840
}

PortProxyGUI/SetProxy.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public SetProxy(PortProxyGUI parent)
2222
ParentWindow = parent;
2323

2424
InitializeComponent();
25-
Font = InterfaceUtil.UiFont;
2625

2726
AutoTypeString = comboBox_Type.Text = comboBox_Type.Items.OfType<string>().First();
2827
var groupNames = (

PortProxyGUI/Utils/InterfaceUtil.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.

PortProxyGUI/publish.ps1

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Remove-Item -Path ".\bin\publish" -Recurse
2+
3+
dotnet publish -c Release -f "net8.0-windows" /p:PublishProfile="net8-x64"
4+
dotnet publish -c Release -f "net8.0-windows" /p:PublishProfile="net8-x86"
5+
6+
dotnet publish -c Release -f "net6.0-windows" /p:PublishProfile="net6-x64"
7+
dotnet publish -c Release -f "net6.0-windows" /p:PublishProfile="net6-x86"
8+
9+
Copy-Item -Path ".\bin\Release\net451\" ".\bin\Publish\" -Recurse -Force
10+
Copy-Item -Path ".\bin\Release\net35\" ".\bin\Publish\" -Recurse -Force
11+
12+
$ver = "1.4.2"
13+
14+
Compress-Archive -Path ".\bin\publish\net8-x64\*" -DestinationPath ".\bin\publish\ppgui-net8-x64-$ver.zip" -Force
15+
Compress-Archive -Path ".\bin\publish\net8-x86\*" -DestinationPath ".\bin\publish\ppgui-net8-x86-$ver.zip" -Force
16+
17+
Compress-Archive -Path ".\bin\publish\net6-x64\*" -DestinationPath ".\bin\publish\ppgui-net6-x64-$ver.zip" -Force
18+
Compress-Archive -Path ".\bin\publish\net6-x86\*" -DestinationPath ".\bin\publish\ppgui-net6-x86-$ver.zip" -Force
19+
20+
Compress-Archive -Path ".\bin\publish\net451\*" -DestinationPath ".\bin\publish\ppgui-net451-$ver.zip" -Force
21+
Compress-Archive -Path ".\bin\publish\net35\*" -DestinationPath ".\bin\publish\ppgui-net35-$ver.zip" -Force

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ A manager for netsh interface portproxy, which is to evaluate TCP/IP port redire
1414

1515
## Upgrade
1616

17+
- **v1.4.2**
18+
- Change the default font from ~~`Microsoft Sans Serif`~~ to **`Arial`**.
19+
- This setting provides better compatibility on operating systems with fewer fonts.
1720
- **v1.4.1**
18-
- Added a status strip at the bottom of the window.
19-
- 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.
21+
- Add a status strip at the bottom of the window.
22+
- 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.
2023
- **v1.4.0**
2124
- Command line calls have been removed to provide better performance.
2225
- New Feature Added: **Remember Window/Column Size**.

0 commit comments

Comments
 (0)