mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-19 06:46:09 +01:00
🎨 Support one-click addition of Microsoft Defender exclusions https://github.com/siyuan-note/siyuan/issues/13650
This commit is contained in:
parent
3d7baaba5f
commit
8ad7d6aae2
5 changed files with 8 additions and 7 deletions
|
|
@ -18,5 +18,6 @@
|
|||
|
||||
package model
|
||||
|
||||
func AutoProcessMicrosoftDefender() {
|
||||
}
|
||||
func AddMicrosoftDefenderExclusion() (err error) {}
|
||||
|
||||
func AutoProcessMicrosoftDefender() {}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func AddMicrosoftDefenderExclusion() (err error) {
|
|||
}
|
||||
} else {
|
||||
logging.LogInfof("current user is not admin, use elevator to add Windows Defender exclusion path [%s, %s]", installPath, util.WorkspaceDir)
|
||||
elevator := filepath.Join(util.WorkingDir, "elevator.exe")
|
||||
elevator := filepath.Join(util.WorkingDir, "kernel", "elevator.exe")
|
||||
if "dev" == util.Mode || !gulu.File.IsExist(elevator) {
|
||||
elevator = filepath.Join(util.WorkingDir, "elevator", "elevator-"+runtime.GOARCH+".exe")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue