Skip to content

Instantly share code, notes, and snippets.

View rlabbe's full-sized avatar

Roger Labbe rlabbe

  • SF Bay Area, California
View GitHub Profile
@rlabbe
rlabbe / Windows Defender Exclusions VS 2022.ps1
Created June 25, 2025 19:48 — forked from Braytiner/Windows Defender Exclusions VS 2022.ps1
Adds Windows Defender exclusions for Visual Studio 2022
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\Downloads\HeidiSQL_11.3_64_Portable') > $null
$pathExclusions.Add($userPath + '\.dotnet') > $null
rem Build static Qt 6.8.3 RELEASE
echo.
echo === Cleaning previous build ===
if exist CMakeCache.txt del CMakeCache.txt
for /d %%d in (CMakeFiles*) do if exist "%%d" rmdir /s /q "%%d"
echo.
echo === Configuring ===
call configure.bat -static -static-runtime -release -prefix d:\qt\6.8.3\msvc2022_64_static -skip qtwebengine -skip qtwebchannel -skip qtwebview -skip qtpdf -skip qttools -skip qtdoc -skip qttranslations -nomake examples -nomake tests -DPython3_ROOT_DIR=C:/Users/roger/miniconda3
rem Build static Qt 6.8.3 DEBUG
echo.
echo === Cleaning previous build ===
if exist CMakeCache.txt del CMakeCache.txt
for /d %%d in (CMakeFiles*) do if exist "%%d" rmdir /s /q "%%d"
echo.
echo === Configuring ===
call configure.bat -static -static-runtime -debug -prefix d:\qt\6.8.3\msvc2022_64_static -skip qtwebengine -skip qtwebchannel -skip qtwebview -skip qtpdf -skip qttools -skip qtdoc -skip qttranslations -nomake examples -nomake tests -DPython3_ROOT_DIR=C:/Users/roger/miniconda3