mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d34a43a790 | ||
|
|
c9c023aad8 | ||
|
|
8e202e6800 | ||
|
|
9fe2541f18 | ||
|
|
b83f6d6c3d | ||
|
|
2bcd942675 | ||
|
|
8c05ba2289 | ||
|
|
95f26332a6 | ||
|
|
e946b01b6f |
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@@ -25,8 +25,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
.\BUILD.ps1
|
.\BUILD.ps1
|
||||||
New-Item -ItemType Directory -Path C:\builtfiles -Force > $null
|
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
|
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-${{ env.GITHUB_TAG_NAME }}.zip)"
|
echo "::set-env name=Netch_SHA256::$(.\GetSHA256.ps1 C:\builtfiles\Netch.zip)"
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
@@ -44,9 +44,8 @@ jobs:
|
|||||||
prerelease: true
|
prerelease: true
|
||||||
draft: false
|
draft: false
|
||||||
files: |
|
files: |
|
||||||
C:\builtfiles\Netch-${{ env.GITHUB_TAG_NAME }}.zip
|
C:\builtfiles\Netch.zip
|
||||||
body: |
|
body: |
|
||||||
|
|
||||||
[](https://t.me/Netch) [](https://t.me/Netch_Discuss_Group)
|
[](https://t.me/Netch) [](https://t.me/Netch_Discuss_Group)
|
||||||
|
|
||||||
## 更新日志:
|
## 更新日志:
|
||||||
@@ -55,4 +54,4 @@ jobs:
|
|||||||
## 校验和
|
## 校验和
|
||||||
| 文件名 | SHA256 |
|
| 文件名 | SHA256 |
|
||||||
| :- | :- |
|
| :- | :- |
|
||||||
| Netch-${{ env.GITHUB_TAG_NAME }}.zip | ${{ env.Netch_SHA256 }} |
|
| Netch.zip | ${{ env.Netch_SHA256 }} |
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ namespace Netch.Controllers
|
|||||||
if (Instance != null && !Instance.HasExited)
|
if (Instance != null && !Instance.HasExited)
|
||||||
{
|
{
|
||||||
Instance.Kill();
|
Instance.Kill();
|
||||||
|
Instance.WaitForExit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -231,6 +231,10 @@ namespace Netch.Controllers
|
|||||||
{
|
{
|
||||||
pVMessController.Stop();
|
pVMessController.Stop();
|
||||||
}
|
}
|
||||||
|
else if (pTrojanController != null)
|
||||||
|
{
|
||||||
|
pTrojanController.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
if (pNFController != null)
|
if (pNFController != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ namespace Netch.Controllers
|
|||||||
if (Instance != null && !Instance.HasExited)
|
if (Instance != null && !Instance.HasExited)
|
||||||
{
|
{
|
||||||
Instance.Kill();
|
Instance.Kill();
|
||||||
|
Instance.WaitForExit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ namespace Netch.Controllers
|
|||||||
if (Instance != null && !Instance.HasExited)
|
if (Instance != null && !Instance.HasExited)
|
||||||
{
|
{
|
||||||
Instance.Kill();
|
Instance.Kill();
|
||||||
|
Instance.WaitForExit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
|||||||
@@ -117,12 +117,17 @@ namespace Netch.Controllers
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if (Global.Settings.BootShadowsocksFromDLL)
|
||||||
|
{
|
||||||
|
NativeMethods.Shadowsocks.Stop();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (Instance != null && !Instance.HasExited)
|
if (Instance != null && !Instance.HasExited)
|
||||||
{
|
{
|
||||||
Instance.Kill();
|
Instance.Kill();
|
||||||
|
Instance.WaitForExit();
|
||||||
}
|
}
|
||||||
if (Global.Settings.BootShadowsocksFromDLL)
|
|
||||||
NativeMethods.Shadowsocks.Stop();
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ namespace Netch.Controllers
|
|||||||
if (Instance != null && !Instance.HasExited)
|
if (Instance != null && !Instance.HasExited)
|
||||||
{
|
{
|
||||||
Instance.Kill();
|
Instance.Kill();
|
||||||
|
Instance.WaitForExit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ namespace Netch.Controllers
|
|||||||
|
|
||||||
Instance = MainController.GetProcess();
|
Instance = MainController.GetProcess();
|
||||||
Instance.StartInfo.FileName = "bin\\Trojan.exe";
|
Instance.StartInfo.FileName = "bin\\Trojan.exe";
|
||||||
Instance.StartInfo.Arguments = "-c data\\last.json";
|
Instance.StartInfo.Arguments = "-c ..\\data\\last.json";
|
||||||
Instance.OutputDataReceived += OnOutputDataReceived;
|
Instance.OutputDataReceived += OnOutputDataReceived;
|
||||||
Instance.ErrorDataReceived += OnOutputDataReceived;
|
Instance.ErrorDataReceived += OnOutputDataReceived;
|
||||||
|
|
||||||
@@ -92,6 +92,7 @@ namespace Netch.Controllers
|
|||||||
if (Instance != null && !Instance.HasExited)
|
if (Instance != null && !Instance.HasExited)
|
||||||
{
|
{
|
||||||
Instance.Kill();
|
Instance.Kill();
|
||||||
|
Instance.WaitForExit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ namespace Netch.Controllers
|
|||||||
|
|
||||||
public const string Name = @"Netch";
|
public const string Name = @"Netch";
|
||||||
public const string Copyright = @"Copyright © 2019 - 2020";
|
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)
|
public async void Check(bool notifyNoFound, bool isPreRelease)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -216,6 +216,7 @@ namespace Netch.Controllers
|
|||||||
if (Instance != null && !Instance.HasExited)
|
if (Instance != null && !Instance.HasExited)
|
||||||
{
|
{
|
||||||
Instance.Kill();
|
Instance.Kill();
|
||||||
|
Instance.WaitForExit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|||||||
@@ -352,6 +352,7 @@ namespace Netch.Forms
|
|||||||
AddShadowsocksServerToolStripMenuItem.Text = Utils.i18N.Translate(AddShadowsocksServerToolStripMenuItem.Text);
|
AddShadowsocksServerToolStripMenuItem.Text = Utils.i18N.Translate(AddShadowsocksServerToolStripMenuItem.Text);
|
||||||
AddShadowsocksRServerToolStripMenuItem.Text = Utils.i18N.Translate(AddShadowsocksRServerToolStripMenuItem.Text);
|
AddShadowsocksRServerToolStripMenuItem.Text = Utils.i18N.Translate(AddShadowsocksRServerToolStripMenuItem.Text);
|
||||||
AddVMessServerToolStripMenuItem.Text = Utils.i18N.Translate(AddVMessServerToolStripMenuItem.Text);
|
AddVMessServerToolStripMenuItem.Text = Utils.i18N.Translate(AddVMessServerToolStripMenuItem.Text);
|
||||||
|
AddTrojanServerToolStripMenuItem.Text = Utils.i18N.Translate(AddTrojanServerToolStripMenuItem.Text);
|
||||||
ModeToolStripMenuItem.Text = Utils.i18N.Translate(ModeToolStripMenuItem.Text);
|
ModeToolStripMenuItem.Text = Utils.i18N.Translate(ModeToolStripMenuItem.Text);
|
||||||
CreateProcessModeToolStripMenuItem.Text = Utils.i18N.Translate(CreateProcessModeToolStripMenuItem.Text);
|
CreateProcessModeToolStripMenuItem.Text = Utils.i18N.Translate(CreateProcessModeToolStripMenuItem.Text);
|
||||||
ManageProcessModeToolStripMenuItem.Text = Utils.i18N.Translate(ManageProcessModeToolStripMenuItem.Text);
|
ManageProcessModeToolStripMenuItem.Text = Utils.i18N.Translate(ManageProcessModeToolStripMenuItem.Text);
|
||||||
|
|||||||
@@ -156,6 +156,8 @@ namespace Netch.Models
|
|||||||
return $"[SR] {Remark}";
|
return $"[SR] {Remark}";
|
||||||
case "VMess":
|
case "VMess":
|
||||||
return $"[V2] {Remark}";
|
return $"[V2] {Remark}";
|
||||||
|
case "Trojan":
|
||||||
|
return $"[TR] {Remark}";
|
||||||
default:
|
default:
|
||||||
return "WTF";
|
return "WTF";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user