Compare commits

...

9 Commits
1.4.5 ... 1.4.6

Author SHA1 Message Date
Connection Refused
d34a43a790 Bump version to 1.4.6 2020-05-08 18:10:06 +08:00
Connection Refused
c9c023aad8 Fix trojan not exit 2020-05-08 18:07:45 +08:00
Connection Refused
8e202e6800 Fix trojan not exit 2020-05-08 16:50:26 +08:00
Connection Refused
9fe2541f18 Add wait for exit 2020-05-08 16:41:50 +08:00
Connection Refused
b83f6d6c3d Fix trojan not exit 2020-05-08 16:41:39 +08:00
Connection Refused
2bcd942675 Fix server remark rendering 2020-05-08 16:29:35 +08:00
Connection Refused
8c05ba2289 Fix trojan can not start 2020-05-08 16:29:11 +08:00
Connection Refused
95f26332a6 Fix translation 2020-05-08 16:20:50 +08:00
Connection Refused
e946b01b6f Update build scripts 2020-05-08 16:19:36 +08:00
12 changed files with 26 additions and 9 deletions

View File

@@ -25,8 +25,8 @@ jobs:
run: |
.\BUILD.ps1
New-Item -ItemType Directory -Path C:\builtfiles -Force > $null
Compress-Archive -Path Netch\bin\x64\Release\win-x64\* -DestinationPath C:\builtfiles\Netch-${{ env.GITHUB_TAG_NAME }}.zip
echo "::set-env name=Netch_SHA256::$(.\GetSHA256.ps1 C:\builtfiles\Netch-${{ env.GITHUB_TAG_NAME }}.zip)"
Compress-Archive -Path Netch\bin\x64\Release\win-x64\* -DestinationPath C:\builtfiles\Netch.zip
echo "::set-env name=Netch_SHA256::$(.\GetSHA256.ps1 C:\builtfiles\Netch.zip)"
- name: Upload
uses: actions/upload-artifact@v1
@@ -44,9 +44,8 @@ jobs:
prerelease: true
draft: false
files: |
C:\builtfiles\Netch-${{ env.GITHUB_TAG_NAME }}.zip
C:\builtfiles\Netch.zip
body: |
[![](https://img.shields.io/badge/Telegram-Channel-blue)](https://t.me/Netch) [![](https://img.shields.io/badge/Telegram-Group-green)](https://t.me/Netch_Discuss_Group)
## 更新日志:
@@ -55,4 +54,4 @@ jobs:
## 校验和
| 文件名 | SHA256 |
| :- | :- |
| Netch-${{ env.GITHUB_TAG_NAME }}.zip | ${{ env.Netch_SHA256 }} |
| Netch.zip | ${{ env.Netch_SHA256 }} |

View File

@@ -59,6 +59,7 @@ namespace Netch.Controllers
if (Instance != null && !Instance.HasExited)
{
Instance.Kill();
Instance.WaitForExit();
}
}
catch (Exception e)

View File

@@ -231,6 +231,10 @@ namespace Netch.Controllers
{
pVMessController.Stop();
}
else if (pTrojanController != null)
{
pTrojanController.Stop();
}
if (pNFController != null)
{

View File

@@ -73,6 +73,7 @@ namespace Netch.Controllers
if (Instance != null && !Instance.HasExited)
{
Instance.Kill();
Instance.WaitForExit();
}
}
catch (Exception e)

View File

@@ -73,6 +73,7 @@ namespace Netch.Controllers
if (Instance != null && !Instance.HasExited)
{
Instance.Kill();
Instance.WaitForExit();
}
}
catch (Exception)

View File

@@ -117,12 +117,17 @@ namespace Netch.Controllers
{
try
{
if (Global.Settings.BootShadowsocksFromDLL)
{
NativeMethods.Shadowsocks.Stop();
return;
}
if (Instance != null && !Instance.HasExited)
{
Instance.Kill();
Instance.WaitForExit();
}
if (Global.Settings.BootShadowsocksFromDLL)
NativeMethods.Shadowsocks.Stop();
}
catch (Exception e)
{

View File

@@ -106,6 +106,7 @@ namespace Netch.Controllers
if (Instance != null && !Instance.HasExited)
{
Instance.Kill();
Instance.WaitForExit();
}
}
catch (Exception e)

View File

@@ -51,7 +51,7 @@ namespace Netch.Controllers
Instance = MainController.GetProcess();
Instance.StartInfo.FileName = "bin\\Trojan.exe";
Instance.StartInfo.Arguments = "-c data\\last.json";
Instance.StartInfo.Arguments = "-c ..\\data\\last.json";
Instance.OutputDataReceived += OnOutputDataReceived;
Instance.ErrorDataReceived += OnOutputDataReceived;
@@ -92,6 +92,7 @@ namespace Netch.Controllers
if (Instance != null && !Instance.HasExited)
{
Instance.Kill();
Instance.WaitForExit();
}
}
catch (Exception e)

View File

@@ -26,7 +26,7 @@ namespace Netch.Controllers
public const string Name = @"Netch";
public const string Copyright = @"Copyright © 2019 - 2020";
public const string Version = @"1.4.5";
public const string Version = @"1.4.6";
public async void Check(bool notifyNoFound, bool isPreRelease)
{

View File

@@ -216,6 +216,7 @@ namespace Netch.Controllers
if (Instance != null && !Instance.HasExited)
{
Instance.Kill();
Instance.WaitForExit();
}
}
catch (Exception e)

View File

@@ -352,6 +352,7 @@ namespace Netch.Forms
AddShadowsocksServerToolStripMenuItem.Text = Utils.i18N.Translate(AddShadowsocksServerToolStripMenuItem.Text);
AddShadowsocksRServerToolStripMenuItem.Text = Utils.i18N.Translate(AddShadowsocksRServerToolStripMenuItem.Text);
AddVMessServerToolStripMenuItem.Text = Utils.i18N.Translate(AddVMessServerToolStripMenuItem.Text);
AddTrojanServerToolStripMenuItem.Text = Utils.i18N.Translate(AddTrojanServerToolStripMenuItem.Text);
ModeToolStripMenuItem.Text = Utils.i18N.Translate(ModeToolStripMenuItem.Text);
CreateProcessModeToolStripMenuItem.Text = Utils.i18N.Translate(CreateProcessModeToolStripMenuItem.Text);
ManageProcessModeToolStripMenuItem.Text = Utils.i18N.Translate(ManageProcessModeToolStripMenuItem.Text);

View File

@@ -156,6 +156,8 @@ namespace Netch.Models
return $"[SR] {Remark}";
case "VMess":
return $"[V2] {Remark}";
case "Trojan":
return $"[TR] {Remark}";
default:
return "WTF";
}