Skip to content

Commit 3679121

Browse files
fix(ci): disable Windows Defender + set compression level 0 for NSIS
1 parent 5a24028 commit 3679121

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ jobs:
114114
key: electron-bin-${{ runner.os }}-${{ hashFiles('electron/package.json') }}
115115
restore-keys: electron-bin-${{ runner.os }}-
116116

117+
# Disable Windows Defender real-time scanning — causes massive I/O slowdown
118+
# when 7z processes thousands of small files in node_modules
119+
- name: Disable Windows Defender (Windows only)
120+
if: runner.os == 'Windows'
121+
run: Set-MpPreference -DisableRealtimeMonitoring $true
122+
shell: powershell
123+
117124
- name: Install all dependencies
118125
run: npm install --ignore-scripts
119126

@@ -140,7 +147,7 @@ jobs:
140147
env:
141148
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
142149
DEBUG: electron-builder
143-
ELECTRON_BUILDER_COMPRESSION_LEVEL: 1
150+
ELECTRON_BUILDER_COMPRESSION_LEVEL: 0
144151
# Code signing (optional - add when certificates are available)
145152
# CSC_LINK: ${{ secrets.MAC_CERT_P12 }}
146153
# CSC_KEY_PASSWORD: ${{ secrets.MAC_CERT_PASSWORD }}

0 commit comments

Comments
 (0)