diff --git a/.github/workflows/issue-check.yml b/.github/workflows/issue-check.yml index 37010f5..184b5f4 100644 --- a/.github/workflows/issue-check.yml +++ b/.github/workflows/issue-check.yml @@ -45,27 +45,27 @@ jobs: # Define the body of the comment with Markdown formatting COMMENT_BODY="> [!CAUTION] ->**Microsoft and other major antivirus vendors have flagged ExplorerPatcher as "malware".** This is likely due to Microsoft's hatred against ExplorerPatcher, not because it contains a virus or such. Flags from Microsoft usually spread to other antivirus vendors. +>**Microsoft and other major antivirus vendors have flagged ExplorerPatcher as \"malware\".** This is likely due to Microsoft's hatred against ExplorerPatcher, not because it contains a virus or such. Flags from Microsoft usually spread to other antivirus vendors. Please include the following files and folders in your antivirus' exclusion list to prevent issues due to antivirus detections: -``` +\`\`\` C:\Program Files\ExplorerPatcher %APPDATA%\ExplorerPatcher C:\Windows\dxgi.dll C:\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy -``` +\`\`\` For Defender, you can run the following script in PowerShell as an administrator: -``` -Add-MpPreference -ExclusionPath "C:\Program Files\ExplorerPatcher" -Add-MpPreference -ExclusionPath "$env:APPDATA\ExplorerPatcher" -Add-MpPreference -ExclusionPath "C:\Windows\dxgi.dll" -Add-MpPreference -ExclusionPath "C:\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy" -Add-MpPreference -ExclusionPath "C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy" -``` +\`\`\` +Add-MpPreference -ExclusionPath \"C:\Program Files\ExplorerPatcher\" +Add-MpPreference -ExclusionPath \"\$env:APPDATA\ExplorerPatcher\" +Add-MpPreference -ExclusionPath \"C:\Windows\dxgi.dll\" +Add-MpPreference -ExclusionPath \"C:\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\" +Add-MpPreference -ExclusionPath \"C:\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\" +\`\`\` ### **Failure to exclude ExplorerPatcher's files may result in inability to install/uninstall ExplorerPatcher and explorer.exe being unable to start.** @@ -73,9 +73,9 @@ If you do not trust this process, please refrain from using ExplorerPatcher and Microsoft, if you are reading this, please reconsider the detections as [there are a lot of users who trust this program and that risks from future EP developers are a thing.](https://www.youtube.com/watch?v=R50myh-AAe0) -Issues related to antivirus detections are closed immediately. Discuss this in https://github.com/valinet/ExplorerPatcher/issues/3670 or https://github.com/valinet/ExplorerPatcher/issues/3228.]" +Issues related to antivirus detections are closed immediately. Discuss this in https://github.com/valinet/ExplorerPatcher/issues/3670 or https://github.com/valinet/ExplorerPatcher/issues/3228." - # Use printf to properly escape the string and handle special characters (e.g., newlines, apostrophes) + # Escape the Markdown content for proper JSON formatting COMMENT_BODY_ESCAPED=$(printf "%s" "$COMMENT_BODY" | jq -Rs .) # Post a comment on the issue with formatted text