Skip to content

Commit eeae8f8

Browse files
WebKit ARM64 Builderclaude
andcommitted
Manually install 7zip on ARM64 to bypass Scoop extraction issues
On ARM64, directly install 7zip using its silent installer and configure Scoop to use that external installation. This avoids the 7zr.exe access denied error in Scoop's extraction process. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 39330dc commit eeae8f8

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,24 @@ jobs:
294294
echo "$env:USERPROFILE\scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
295295
}
296296
297-
# Configure Scoop to use external 7zip for ARM64 to avoid extraction issues
297+
# On ARM64, manually install 7zip to avoid Scoop's extraction issues
298298
if ($isARM64) {
299+
$7zipUrl = "https://www.7-zip.org/a/7z2501-arm64.exe"
300+
$7zipExe = "$env:TEMP\7z-installer.exe"
301+
Invoke-WebRequest -Uri $7zipUrl -OutFile $7zipExe
302+
303+
# Extract manually
304+
Start-Process -FilePath $7zipExe -ArgumentList "/S", "/D=C:\Program Files\7-Zip" -Wait
305+
echo "C:\Program Files\7-Zip" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
306+
307+
# Tell Scoop to use the external 7zip we just installed
299308
scoop config use_external_7zip true
309+
scoop config 7zip_path "C:\Program Files\7-Zip\7z.exe"
310+
} else {
311+
# x64 can use normal Scoop 7zip installation
312+
scoop install 7zip
300313
}
301314
302-
# Install 7zip
303-
scoop install 7zip
304-
305315
# Install aria2 for parallel downloads
306316
scoop install aria2
307317

0 commit comments

Comments
 (0)