Add patch to fix #8276
This commit is contained in:
@@ -10,6 +10,9 @@ Arch="linux-64"
|
||||
OutputPath="$(mktemp -d)"
|
||||
Version="$1"
|
||||
|
||||
# Apply patches before building
|
||||
git apply ./patches/0001-fix-automatic-connection.patch
|
||||
|
||||
PROJ="./v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj"
|
||||
dotnet restore "$PROJ"
|
||||
sudo rm -rf "$(dirname "$PROJ")/bin/Release/net8.0"
|
||||
@@ -19,6 +22,9 @@ dotnet restore "$PROJ"
|
||||
sudo rm -rf "$(dirname "$PROJ")/bin/Release/net8.0"
|
||||
dotnet publish "${PROJ}" -c Release -r "linux-x64" --self-contained -p:StripSymbols=true -p:PublishTrimmed=true -o "$OutputPath"
|
||||
|
||||
# Revert patches after building
|
||||
git apply -R ./patches/0001-fix-automatic-connection.patch
|
||||
|
||||
export RID_DIR="linux-x64"
|
||||
download_xray "$OutputPath/bin/xray"
|
||||
download_singbox "$OutputPath/bin/sing_box"
|
||||
|
||||
@@ -192,6 +192,9 @@ build_for_arch() {
|
||||
|
||||
echo "[*] Building for target: $short (RID=$rid, RPM --target $rpm_target)"
|
||||
|
||||
# Apply patches before building
|
||||
git apply ./patches/0001-fix-automatic-connection.patch
|
||||
|
||||
# .NET publish (self-contained) for this RID
|
||||
dotnet restore "$PROJECT"
|
||||
rm -rf "$(dirname "$PROJECT")/bin/Release/net8.0" || true
|
||||
@@ -203,6 +206,9 @@ build_for_arch() {
|
||||
-p:IncludeNativeLibrariesForSelfExtract=true \
|
||||
-p:StripSymbols=true
|
||||
|
||||
# Revert patches after building
|
||||
git apply -R ./patches/0001-fix-automatic-connection.patch
|
||||
|
||||
# Per-arch variables (scoped)
|
||||
local RID_DIR="$rid"
|
||||
local PUBDIR
|
||||
|
||||
23
patches/0001-fix-automatic-connection.patch
Normal file
23
patches/0001-fix-automatic-connection.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
From a6af95e083262509c48deca95ddc83ee5ff66334 Mon Sep 17 00:00:00 2001
|
||||
From: 2dust <31833384+2dust@users.noreply.github.com>
|
||||
Date: Sat, 8 Nov 2025 20:10:20 +0800
|
||||
Subject: [PATCH] Bug fix
|
||||
|
||||
https://github.com/2dust/v2rayN/issues/8276
|
||||
---
|
||||
v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs
|
||||
index ad91fa02556..74271149b95 100644
|
||||
--- a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs
|
||||
+++ b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs
|
||||
@@ -268,7 +268,7 @@ private async Task Init()
|
||||
}
|
||||
await RefreshServers();
|
||||
|
||||
- SetReloadEnabled(true);
|
||||
+ BlReloadEnabled = true;
|
||||
await Reload();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user