From f65f243f054814c6556be3b6fd4877ab90fe65fe Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 28 Dec 2024 23:49:28 +0800 Subject: [PATCH] :art: Support one-click addition of Microsoft Defender exclusions https://github.com/siyuan-note/siyuan/issues/13650 --- kernel/model/elevator.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/kernel/model/elevator.go b/kernel/model/elevator.go index 147a0e785..40c4ba4f4 100644 --- a/kernel/model/elevator.go +++ b/kernel/model/elevator.go @@ -14,12 +14,11 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . +//go:build windows + package model import ( - "github.com/siyuan-note/logging" - "github.com/siyuan-note/siyuan/kernel/util" - "golang.org/x/sys/windows" "os" "os/exec" "path/filepath" @@ -27,7 +26,11 @@ import ( "strings" "syscall" + "golang.org/x/sys/windows" + "github.com/88250/gulu" + "github.com/siyuan-note/logging" + "github.com/siyuan-note/siyuan/kernel/util" ) func processMicrosoftDefender() {