Skip to content

Commit

Permalink
Try to fix skipping the detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Mar 7, 2024
1 parent f296ec1 commit 1987087
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ jobs:
name: winit
path: dist/**/*.exe
- name: Check Windows Defender does not false positive detect the product
# https://github.com/actions/runner-images/issues/855#issuecomment-626692949 may help to understand
run: |
Remove-MpPreference -ExclusionPath (Get-MpPreference).ExclusionPath
Set-Service -Name wuauserv -StartupType Manual -Status Running
& "C:\Program Files\Windows Defender\MpCmdRun.exe" -SignatureUpdate
& "C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File "$(pwd)\dist\winit-conf_windows_amd64_v1\winit-conf.exe"
& "C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File "$(pwd)\dist\winit-reg_windows_amd64_v1\winit-reg.exe"
Expand Down

0 comments on commit 1987087

Please sign in to comment.