From 1106fd8cf11238dfc19fe62b739a89e848387e46 Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Fri, 25 Oct 2024 20:32:47 +0800 Subject: [PATCH] Give upgrade app execute permission at runtime --- v2rayN/ServiceLib/Handler/CoreHandler.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v2rayN/ServiceLib/Handler/CoreHandler.cs b/v2rayN/ServiceLib/Handler/CoreHandler.cs index 33d78f74..c4b80381 100644 --- a/v2rayN/ServiceLib/Handler/CoreHandler.cs +++ b/v2rayN/ServiceLib/Handler/CoreHandler.cs @@ -30,6 +30,10 @@ namespace ServiceLib.Handler { if (it.CoreType == ECoreType.v2rayN) { + if (Utils.UpgradeAppExists(out var fileName)) + { + await Utils.SetLinuxChmod(fileName); + } continue; }