From f9918db94207dffaa74dfea3f426da08f245c5cb Mon Sep 17 00:00:00 2001 From: KhooLy <73142442+KhooLy@users.noreply.github.com> Date: Thu, 30 Jul 2026 23:03:16 +0300 Subject: [PATCH] ci(windows): surface the real Expand-Archive failure instead of a swallowed exception --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c2531ab..7325f3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,11 +93,20 @@ jobs: - name: Fetch libVLC runtime shell: pwsh run: | + $ErrorActionPreference = "Stop" $version = "3.0.23" $archive = "$env:RUNNER_TEMP/vlc-win64.zip" Invoke-WebRequest "https://get.videolan.org/vlc/$version/win64/vlc-$version-win64.zip" -OutFile $archive + Get-Item $archive | Format-List Name, Length $extract = "$env:RUNNER_TEMP/vlc-win64" - Expand-Archive $archive -DestinationPath $extract + try { + Expand-Archive $archive -DestinationPath $extract + } catch { + Write-Host "Expand-Archive failed:" + $_ | Format-List * -Force + $_.Exception | Format-List * -Force + throw + } $root = Get-ChildItem $extract -Directory | Select-Object -First 1 New-Item -ItemType Directory -Force src-tauri/lib/vlc | Out-Null Copy-Item "$($root.FullName)/libvlc.dll" src-tauri/lib/vlc/