Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Support one-click addition of Microsoft Defender exclusions https://github.com/siyuan-note/siyuan/issues/13650

Danielf65f243f0548
diff --git a/kernel/model/elevator.go b/kernel/model/elevator.go
index 147a0e785b..40c4ba4f46 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 <https://www.gnu.org/licenses/>.
+//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() {